|
Boost Users : |
From: RIVASSEAU Jean Noel (JN.RIVASSEAU_at_[hidden])
Date: 2006-02-08 12:04:09
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net