Re:Re: [boost] Seialization library current status

Bronek Kozicki wrote:
#include <fstream> #include <boost/config.hpp> #include "test_tools.hpp" int main() { const char * testfile = boost::archive::tmpnam(NULL); test_ostream os(testfile, TEST_STREAM_FLAGS); test_oarchive oa_implementation(os); printf("boom\n\n"); } I'm amazed you could figure this out. Thank you, this is very helpful. Robert Ramey

Michel Decima sent me following off-list: #include <fstream> #include <boost/config.hpp> #include "test_tools.hpp" int main() { const char * testfile = boost::archive::tmpnam(NULL); test_ostream os(testfile, TEST_STREAM_FLAGS); test_oarchive oa_implementation(os); os.close(); //! printf("no boom\n\n"); } this program does not throw an error (when compiled on como, backend MSVC71). Apparently calling close() before destroying objects makes big difference. B.
participants (2)
-
Bronek Kozicki
-
Robert Ramey