Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-12-27 11:16:32


I wouldn't recommend this

Tanguy Krotoff wrote:
> Merrill Cornish wrote:
>> outArchive << BOOST_SERIALIZATION_NVP(testObj_out);
>>
>> triggers an exception saying, "unrecognized XML syntax".
>
> Try to put testObj_out inside a temporary variable.

This would defeat any memory/identity tracking.

>
> Inside my code I do something like this:
> std::string login = _wengoAccount->_wengoLogin;
> ar << BOOST_SERIALIZATION_NVP(login);
>
> Before I was doing:
> ar << BOOST_SERIALIZATION_NVP(_wengoAccount->_wengoLogin);
> And it was throwing an exception.

Perhaps because there was a ">" character in the argument.

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