Boost logo

Boost Users :

Subject: Re: [Boost-users] serialization::make_nvp parameters
From: Luca Cappa (luca.cappa_at_[hidden])
Date: 2009-09-08 10:55:27


On Tue, 08 Sep 2009 13:16:49 +0200, Hammond, John (UK New Malden)
<John.Hammond2_at_[hidden]> wrote:

> Hello,
>
> I am hoping someone could answer a question I have regarding the
> make_nvp(..) function of the Serialization library.
>
> I am attempting to serialize a number of objects within a loop, and the
> name of the name-value-pair is to be assigned dynamically depending on
> some values taken from within the object that is to be serialized. I am
> currently performing the actions below:
>
> my_obj = GetMyObj(..);
>
> std::string temp = str( boost::format("x:%1% y:%2%") % _x % _y );

probably it is the presence of colons in the string? Try removing them and
retry.

Greetings,
Luca


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