Re: [Boost-bugs] [Boost C++ Libraries] #4660: Error read binary archive, created by old boost version

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4660: Error read binary archive, created by old boost version
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-05 10:47:57


#4660: Error read binary archive, created by old boost version
---------------------------------------+------------------------------------
  Reporter: serge-voropaev@… | Owner: ramey
      Type: Bugs | Status: reopened
 Milestone: Boost 1.45.0 | Component: serialization
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------+------------------------------------

Comment (by joerg schlegel <jschlegel@…>):

 The most simple test case to reproduce the error I was able to find is:

 -----------------------------------------------
         std::map<std::string, size_t> m;
         m["aaa"] = 111;
         m["bbb"] = 222;

         std::ofstream fb("archive.ser");
         //std::ifstream fb("archive.ser");
         boost::archive::binary_oarchive oa(fb);
         boost::archive::binary_iarchive ia(fb);
         oa << m;
         //ia >> m;
 -----------------------------------------------

 - I compiled it using ms vc8 and boost 1.42 and created the test archive
 - If I read it using the same setup the map gets restored flawlessly
 - If I read it using the code compiled with ms VC10 and boost svn trunk
 "m" is empty (my real world rather dies with bad_alloc deep inside the
 call stack )

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4660#comment:22>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC