Re: [Boost-users] [Serialization]: bug while serializing astd:string

I have been able to test with a string stream; the bug does not occur. That is, this code produces the bug: std::ifstream ifs("container.mob"); boost::archive::text_iarchive ia(ifs); ia & MyObject; while the following does not: std::ifstream ifs("container.mob"); std::ostringstream tmp; tmp << ifs.rdbuf(); std::istringstream is(tmp.str()); boost::archive::text_iarchive ia(is); ia & MyObject; a) try using a different stream buffer - strstream So do you have any clue, Robert ?? Clearly the problem has to do with buffering somewhere.... Jean-Noël

Untl 1.34 comes out try the following on the output stream
std::ifstream ofs("container.mob");
boost::archive::text_oarchive ia(ofs);
oa << MyObject;
ofs << std::endl;
"RIVASSEAU Jean Noel"
participants (2)
-
RIVASSEAU Jean Noel
-
Robert Ramey