Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-04-18 23:02:17


For one thing

ar & BOOST_SERIALIZATION_NVP(this->m_);

isn't a good idea. This will fail when serialiized as xml as an xml
attribute can't contain an ">" character.

But the main problem is you're using save/load without
BOOST_SERIALIZATION_MEMBER_SPLIT()

Robert Ramey

Klaus Nowikow wrote:
> Klaus Nowikow <nowikow <at> decomsys.com> writes:
>
>> when I compile the code below (with MSVC 7.1), I get an error
>> telling me that "'serialize' : is not a member of
>> 'std::vector<_Ty>'". I will post the
>> exact error message below the code.
>
> Hm. I did som more resarch and found the following:
> Whe I either remove the BOOST_SERIALIZATION_NVP() macros
> or change the lines
>
> ar << BOOST_SERIALIZATION_NVP(object);
>
> and
>
> ar >> BOOST_SERIALIZATION_NVP(object);
>
> to
>
> ar & BOOST_SERIALIZATION_NVP(object);
>
> it also works.
>
> Regards,
>
> Klaus


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