Boost logo

Boost :

From: Christoph Ludwig (cludwig_at_[hidden])
Date: 2004-09-27 11:03:45


Hi Vladimir,

On Mon, Sep 27, 2004 at 03:21:17PM +0400, Vladimir Prus wrote:
> > Do I need to write
> >
> > ar & nvp<MyMemberType>("my_member_tag", this->my_member);
> >
> > in my serialization functions for every variable I want to
> > (de-)serialize?
>
> You can also use
>
> ar & BOOST_SERIALIZATION_NVP("my_member")

Ah, now I found it in the docs! I had searched the table of contents
for xml and nvp but the non abbreviated entry "Name-Value Pairs" escaped
me. Since you mentioned above macro I decided to look again... Thanks!

Regards

Christoph

-- 
http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/cludwig.html
LiDIA: http://www.informatik.tu-darmstadt.de/TI/LiDIA/Welcome.html

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk