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
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