Re: [Boost-bugs] [Boost C++ Libraries] #4903: Serialization library in Boost 1.45 is unable to read archive created with Boost 1.39

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4903: Serialization library in Boost 1.45 is unable to read archive created with Boost 1.39
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-17 12:38:59


#4903: Serialization library in Boost 1.45 is unable to read archive created with
Boost 1.39
-------------------------------------------------------+--------------------
  Reporter: Rüdiger Brünner <rbruenner@…> | Owner: ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.46.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------------------------------+--------------------

Comment (by Rüdiger Brünner <rbruenner@…>):

 Hello,

 please find the attached AltSerial.7z file. It contains an MSVC library
 project of the 1.39 serialization library. I have renamed the namespaces
 to boost::alt_serialization and boost::alt_archive, respectively. In a
 preliminary test, using this library, I was able to load my old archives
 in a test project which is otherwise using boost 1.48.
 It is important to
 a) replace all occurrences of the old namespaces in the client code with
 alt_serialization and alt_archive, respectively.
 b) pay attention that the headers of the AltSerial library must go BEFORE
 including any of the other boost includes. This will effectively hide the
 1.48 headers from client code. The names of the header files (as well as
 their include guards) are the same as in boost, so it is sufficient to e.
 g. change the statement


 {{{
 #include <boost/serialization/export.hpp>
 }}}

 to

 {{{
 #include "serialization/export.hpp"
 }}}

 (note the dropping of the boost folder name and the usage of quotation
 marks).

 Maybe, this information is of help for anyone having trouble with the
 binary serialization.

 Please note that I did not fully test the library yet. You may use it as a
 starting point for your own evaluations.

 Best regards
 Rüdiger

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4903#comment:23>
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:07 UTC