|
Boost Users : |
From: sjdf (sjdf.maillist_at_[hidden])
Date: 2007-12-27 02:20:24
Hi all,
Code like this:
// Save
std::ofstream ofs( "c.out" );
A testA1;
B testB1;
testA1.Save( ofs );
testB1.Save( ofs );
ofs.close();
// Load
std::ifstream ifs( "c.out" );
A testA11;
B testB11;
testA11.Load( ifs );
testB11.Load( ifs );
The testA1 and testB1 can save successful, and the testA11 can load
successful, but when loading testB11, it throw a exception
"invalid_signature". I have trace into the code, I found when the
testA11 loading, the "file_signature" is "serialization::archive", but
when testB11 loading, the "file_signature" is empty.
Why it like this? What should I do?
May be there is the same question before I ask, but I don't know what
keyword could be search, sorry.
Thanks!
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