Boost logo

Boost Users :

From: Terence Wilson (tez_at_[hidden])
Date: 2006-01-05 22:17:12


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Robert Ramey
> Sent: Thursday, January 05, 2006 7:58 AM
> To: boost-users_at_[hidden]
> 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_at_[hidden] [mailto:boost-users-
> >> bounces_at_[hidden]] On Behalf Of Robert Ramey
> >> Sent: Wednesday, January 04, 2006 8:09 PM
> >> To: boost-users_at_[hidden]
> >> 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_at_[hidden]
> >> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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