15 #if !defined(__clang__)
16 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
58 const T& originalObjectRef = originalObject;
60 std::ofstream ofs(filename,
std::ios::out | std::ios::binary);
62 std::cout <<
"Serializing " <<
typeid(
T).
name() <<
" ..." << std::endl;
63 oa << originalObjectRef;
68 std::ifstream ifs(filename,
std::ios::in | std::ios::binary);
70 std::cout <<
"Deserializing " <<
typeid(
T).
name() <<
" ..." << std::endl;
71 ia >> deserializedObject;
eos::portable_oarchive OutputArchive
eos::portable_iarchive InputArchive