Re: [Boost-bugs] [Boost C++ Libraries] #8088: Limited Forward Compatibility

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8088: Limited Forward Compatibility
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-11-27 10:56:08


#8088: Limited Forward Compatibility
----------------------------------------+----------------------------------
  Reporter: Dmitry Shesterkin <dfb@…> | Owner: Robert Ramey
      Type: Patches | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords: Forward
                                        | Compatibility
----------------------------------------+----------------------------------

Comment (by sena@…):

 Replying to [comment:6 Paresh Varshney <pareshvarshney@…>]:
> Does boost supports (if this made it to actual boost code) this for
 binary archives?

 This will not be possible without 2 significant modifications:

 1. Store the name of the field in binary_oarchive, like it is done in
 xml_oarchive. This way binary_iarchive will be able to identify new
 fields.
 2. Store the size of the field in binary_oarchive, this way
 binary_iarchive will know how many bytes it should skip.

 I created experimental archive which supports forward compatibility. It
 stores output in boost::property_tree::ptree, which can be serialized to
 json. Here is the link https://github.com/sena73/ptree_archive

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/8088#comment:7>
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-11-27 11:01:56 UTC