-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: Thursday, January 05, 2006 7:58 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [serialization] assertwhenserializingpolymorphictype to XML (Visual Studio 8)
Look in the documentation under "base_object"
Robert Ramey
I made a dumb mistake: instead of ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(CMyClassBase); I had BOOST_SERIALIZATION_BASE_OBJECT_NVP(CMyClassBase); It's just one of those things it took another pair of eyes to notice. Thanks any way.
Terence Wilson wrote:
OK, that did it, but upon examination of the xml output I noticed the base class is not being serialized. A breakpoint inserted in CMyBaseClass::serialize never gets hit. Any thoughts?
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Robert Ramey Sent: Wednesday, January 04, 2006 8:09 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [serialization] assert when serializingpolymorphictype to XML (Visual Studio 8)
Note that for "export" to work, the boost/serialization/export.hpp header must follow any archive headers. So moving the xml_iarchive.hpp .. up to where the text_iarchive.hpp headers are included should address the problem.
Robert Ramey
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users