Commit 41e684e6 authored by Matthieu Dorier's avatar Matthieu Dorier

added flag to prevent boost from adding a header when serializing

parent b77d842b
......@@ -36,7 +36,7 @@ class InputArchive : public iarchive {
template<typename ... Args>
InputArchive(DataStore* datastore, Args&& ... args)
: iarchive(std::forward<Args>(args)..., 0)
: iarchive(std::forward<Args>(args)..., boost::archive::archive_flags::no_header)
, m_datastore(datastore) {}
DataStore* getDataStore() const {
......
......@@ -144,7 +144,6 @@ class KeyValueContainer {
}
try {
std::stringstream ss(buffer);
//boost::archive::binary_iarchive ia(ss);
InputArchive ia(getDataStore(), ss);
ia >> value;
} catch(...) {
......@@ -162,7 +161,7 @@ class KeyValueContainer {
std::stringstream ss_key;
ss_key << key << "#" << demangle<V>();
key_str = std::move(ss_key.str());
boost::archive::binary_oarchive oa(ss_value);
boost::archive::binary_oarchive oa(ss_value, boost::archive::archive_flags::no_header);
try {
oa << value;
} catch(...) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment