
2 Aug
2005
2 Aug
'05
3:23 p.m.
I can't see anything wrong with it. To see the problem I would have to have to trace into the << operartor down to iostreams. As an aside, is there a reason that
HGLOBAL GlobalArchiveHdl() { CSharedFileOStream lOut; boost::archive::binary_oarchive oa( lOut ); // oa & mVal; // same result as below oa << const_cast<const value_type&>(mVal); //BOOST_1_33_0 return lOut.Detach(); }
wouldn't be better replaced with: HGLOBAL GlobalArchiveHdl() const // this function doesn't modify its class variables { CSharedFileOStream lOut; boost::archive::binary_oarchive oa( lOut ); oa << mVal; return lOut.Detach(); } Robert Ramey