mardi 25 août 2015

Why does boost::archive::binary_iarchive require a copyable argument?

In this code:

class X {
   ...
   serialize(...)
   ...
};

void f() {
   X x;
   ifstream ifs(...);
   boost::archive::binary_iarchive ia(ifs);
   ia >> x;
}

Why does X have to be copyable, not just movable?

Aucun commentaire:

Enregistrer un commentaire