Possible Serialization demo.cpp issue.Its my custom to use scoping for
automatic closing of streams and archives. With this, your example would
look more like:
int _tmain(int argc, _TCHAR* argv[])
{
std::string filename(boost::archive::tmpdir());
filename += "/demofile.txt";
std::string b1("mike");
{
std::ofstream ofs(filename.c_str());
boost::archive::text_oarchive oa(ofs);
oa << b1;
} // stream flushed and closed here. Then archive closed
}
This is the way its done in demo.cpp (by calling save/load in functions).
Robert Ramey
"Holmes, Michael A (Mike)"