Boost logo

Boost :

Subject: Re: [boost] Boost XML Serialization Stability across library versions
From: Adlai Shawareb (adlai_at_[hidden])
Date: 2017-01-26 16:20:11


Thanks Robert,

Regarding your suggestion to use text serialization. Since, over time, we will be adding and deleting data from the data set that we serialize, would the following be the right approach to managing the changes in the data that is de/serialized. I'm thinking that we would set the BOOST_CLASS_VERSION before de/serializing.

{
               ar & mInt;
               If(version >= 2)
                              ar & mFloat;
               If(version >= 3)
                              ar & mInt2;
               ar & mFloat2;
}

Regards,
Adlai

On 1/25/17 12:04:00, Robert Ramey wrote:
> Right. No one as under taken that task. Should be fairly straight
> forward using spirit v3.
> Robert Ramey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk