Boost logo

Boost :

Subject: [boost] How do folks test serialization code?
From: John Maddock (john_at_[hidden])
Date: 2013-08-04 13:39:47


Title almost says it all, how do you verify that your classes serialization
code is truly platform independent, and doesn't accidently break later? I
have some trivial tests that round trip to a stringstream using
boost::archive::text_i/oarchive, but of course that only verifies that
platform-specific serialization works. So what do folks do - generate text
archives on different platforms, deserialize and compare? How does
Boost.Serialization itself verify this?

Cheers, John.


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