File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tesseract_common/include/tesseract_common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments