|
Boost Users : |
Subject: Re: [Boost-users] testing archive version of boost::serialize
From: Robert Ramey (ramey_at_[hidden])
Date: 2012-07-14 13:17:12
Sam Appleton wrote:
> Is there any way to "test" the version of a boost serialization
> archive. I know that we can always
> just attempt to deserialize and catch the generated exception, but is
> there any way to just
> test the version of the archive before attempting deserialization?
Check the documentation section Reference/Archive Class Reference/Testing
This explains how you can submit your archive class to the exhaustive
series of tests that all the "built-in" archives are subjected to. It does
take a while to run the tests. And then it makes even more time to
get your custom archive to pass all the tests. But you will be
rewarded with something you should be able to depend upon.
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