14 Jul
2012
14 Jul
'12
5:17 p.m.
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