Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem using serialization::xml_archive withpolymrphic classes
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-09-01 16:17:51


przemyslaw.sliwa_at_[hidden] wrote:
> HelloHello,
>
> I have written code below and it works fine when using text archives.
> However, when I try to run it with the xml archives it is throwing a
> strange error saying "Invalid XML tag name". I have no idea what that
> means and could not find it in the documentation of the serialization
> library. Could someone tell me what I am doing wrong in this code?

replace ar & BOOST_SERIALIZATION_NVP(boost::serialization::base_object< Actor >( *this ));

with another construct to elminate the < >

I believe its in the documenation under BOOST_SERIALIZATION_NVP_BASE_OBJECT or something like that.

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