From: Bronek Kozicki (brok_at_[hidden])
Date: 2004-08-27 01:27:28


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.