Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Serialization + Forward compatibility [was Re: boost::serialization and PHP websites]
From: Sohail Somani (sohail_at_[hidden])
Date: 2009-06-01 01:28:50


Robert Ramey wrote:
> Sohail Somani wrote:
>> Basically, I am saying that version 4 of the app writes out:
>>
>> foo 1 2 3 |END_MARKER| foo 4 5 6 |END_MARKER|
>>
>> And version 3, which can only read the first two ints, reads foo 1 2
>> and then resets the stream pointer (or whatever) to right after
>> |END_MARKER|.
>>
>> If that makes ANY sense, I will be happy.
>
> You might be able to implement that for xml archives by
> deriving from xml_iarchive.

I never use xml archives but xml in general does have this property. I'd
like the solution to apply to all archives though.

-- 
Sohail Somani
http://uint32t.blogspot.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net