From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-12-08 09:56:18
Alexey Nikitin wrote:
> Sample from "test_array.cpp":
> --- line 55 ---
> // test array of objects
> A a_array;
> test_ostream os(testfile, TEST_STREAM_FLAGS);
> test_oarchive oa(os);
> oa << boost::serialization::make_nvp("a_array", a_array);
> --- line 61 ---
> At exit from block happens access violation, because os tries to use
> codecvt object deleted in oa destructor.
I think this is a deeper problem than "os.close()" missing in tests. I'd say
that if archive changes locale, it probably should switch it back in dtor.
Robert, what do you think?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk