aboutsummaryrefslogtreecommitdiff
path: root/src/serialization/binary_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialization/binary_utils.h')
-rw-r--r--src/serialization/binary_utils.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/serialization/binary_utils.h b/src/serialization/binary_utils.h
index 8635585af..8444f220e 100644
--- a/src/serialization/binary_utils.h
+++ b/src/serialization/binary_utils.h
@@ -39,8 +39,7 @@ namespace serialization {
template <class T>
bool parse_binary(const std::string &blob, T &v)
{
- std::istringstream istr(blob);
- binary_archive<false> iar(istr);
+ binary_archive<false> iar{epee::strspan<std::uint8_t>(blob)};
return ::serialization::serialize(iar, v);
}