Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] Runtime checking oftypes indeserialization
From: Robert Ramey (ramey_at_[hidden])
Date: 2008-10-29 13:00:40


I doubt anyone would have implemented such a functionality for
a deliverable.

a) were such an error discovered it would really be a
bug from which no recovery would be possible.
b) It "might" be possible to trap such a bug and
invoke an assert, but such code wouldn't be in
a deliverable in any case.

basically, detecting such a condition is only
useful during development. And during development
one has the option of using a "special" archive
for double checking that serialization save/load
functions are symetrical. If one had nothing
else to do, one could enhance xml_archives
to more thoroughly achieve this purpose, but
apparently no one has deemed this to be worth
thier efforts.

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