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

Subject: [Boost-bugs] [Boost C++ Libraries] #4660: Error read binary archive, created by old boost version
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-20 08:49:22


#4660: Error read binary archive, created by old boost version
--------------------------------------+-------------------------------------
 Reporter: serge-voropaev@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.44.0 | Severity: Showstopper
 Keywords: |
--------------------------------------+-------------------------------------
 I have some binary archive files, which was created by old version of
 boost::serialization. New (1.44) version does not read these files.
 Program throws exception “unsupported_version”

 I have done some small investigation. The pproblem is:

 Old code writes library_version as 1 byte, but new code (1.44) writes
 library_version as unsigned short!!!

 You can see in attachment 2 files, which was created
 boost_1_44_0\libs\serialization\example\demo.cpp. I modify this program
 for work with binary archive. First file demofile.dat was created with
 boost 1.43. Second file demofile_1_44.dat. Was created with boost 1.44.

 I think it is very serious bug, as archive compatibility was ruined.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4660>
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:04 UTC