|
Boost Users : |
Subject: Re: [Boost-users] testing archive version of boost::serialize
From: Robert Ramey (ramey_at_[hidden])
Date: 2012-07-16 01:15:42
Sam Appleton wrote:
> Hi Robert
>
However, is there any
> way to determine
> just from an open archive stream what the version number of the
> embedded stream or
> classes implied by the stream contains?
yes - look at the implementation of the current archives.
You'll see that at the very begining, there is
"archive version number". This is distinct from
the "class version" described for serializable classes.
This archive version number can be used to just
abort the process, or adjust it's behavior in
accordance with the difference between
the version which made the archive and
the current code version.
Robert Ramey
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