|
hpp-util
6.1.0
Debugging tools for the HPP project.
|
Serialization of a class hierarchy can be done as follows. The class hierarchy is:
In the header file,
BOOST_CLASS_EXPORT_KEY(AB) In the definition file,
BOOST_CLASS_EXPORT_IMPLEMENT(AB) If you know a class will not have any serializable child (i.e. AB exists but there is no no ABC), then you can remove BOOST_CLASS_EXPORT_KEY(AB) and replace BOOST_CLASS_EXPORT_IMPLEMENT(AB) by BOOST_CLASS_EXPORT(AB)