Boost logo

Boost :

Subject: Re: [boost] [Serialization] How to retrieve a class version in an archive without loading?
From: Brandon Kohn (blkohn_at_[hidden])
Date: 2013-10-18 08:27:00


On 10/18/2013 8:01 AM, nico wrote:
> *In brief : is there a way to retrieve the BOOST_CLASS_VERSION of T stored
> in the archive ?*

In short, no. At least not the way you want. The class version is
serialized just before the instance serialization. You would have to
deserialize the archive up to the point of the first instance of the
class to find this data.

Cheers,

Brandon


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