14 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
56 const T & originalObjectRef = originalObject;
58 std::ofstream ofs(filename,
std::ios::out | std::ios::binary);
60 std::cout <<
"Serializing " <<
typeid(
T).
name() <<
" ..." << std::endl;
61 oa << originalObjectRef;
66 std::ifstream ifs(filename,
std::ios::in | std::ios::binary);
68 std::cout <<
"Deserializing " <<
typeid(
T).
name() <<
" ..." << std::endl;
69 ia >> deserializedObject;
eos::portable_oarchive OutputArchive
eos::portable_iarchive InputArchive