Boost logo

Boost Users :

Subject: Re: [Boost-users] boost serialization of std::pair
From: Robert Ramey (ramey_at_[hidden])
Date: 2013-03-18 12:37:59


Andrew Smith wrote:
> Hi,
>
> Is there any way of customizing the element names given to
> serialization of std::pair via xml_oarchive. Im think of something
> like the BOOST_SERIALIZATION_NVP mechanism.
>
> In particular Im looking to serialize std::map with custom elemnet
> names to replace '<first>' and '<second>'
>
> Thanks
>
> Andy
>

there is no reason why you can't just copy the std::map serialization
and replace it with your own.

Robert Ramey

>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users



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