I've noted that if in the load I don't have ia >> *this; then I get unsupported_class_version when compiling. However, I've also noted that Store creates nearly identical archive files whether it is:
On Nov 5, 2009, at 12:42 AM, B Hart wrote:void store(const char* filename){
std::ofstream ofs(filename);
boost::archive::text_oarchive oa(ofs);
oa << this;
}
void load(const char* filename){
std::ifstream ifs(filename);
boost::archive::text_iarchive ia(ifs);
ia >> this;
}Don't you mean oa << *this and ia >> *this? I doubt that you want a new object created in load, but rather this object loaded from the file?Matthias
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users