Skip to content

Commit d6fc306

Browse files
rjoomenLevi-Armstrong
authored andcommitted
Fix boost::archive type for binary serialization
1 parent 38269cb commit d6fc306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tesseract_common/include/tesseract_common/serialization.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ struct Serialization
184184
{
185185
std::stringstream ss;
186186
{ // Must be scoped because all data is not written until the oost::archive::xml_oarchive goes out of scope
187-
boost::archive::xml_oarchive oa(ss);
187+
boost::archive::binary_oarchive oa(ss);
188188

189189
// Boost uses the same function for serialization and deserialization so it requires a non-const reference
190190
// Because we are only serializing here it is safe to cast away const
@@ -262,7 +262,7 @@ struct Serialization
262262
{ // Must be scoped because all data is not written until the oost::archive::xml_oarchive goes out of scope
263263
std::stringstream ss;
264264
std::copy(archive_binary.begin(), archive_binary.end(), std::ostreambuf_iterator<char>(ss));
265-
boost::archive::xml_iarchive ia(ss);
265+
boost::archive::binary_iarchive ia(ss);
266266
ia >> BOOST_SERIALIZATION_NVP(archive_type);
267267
}
268268

0 commit comments

Comments
 (0)