Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost serialization] non intrusive & derivated class
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-23 12:00:55


AMDG

agrosjea wrote:
> I found the problem in my code, the BOOST_SERIALIZATION_NVP macro doesnt
> seems to support the derivated classes. so I used
> boost::serialization::make_nvp(....) instead
>
> it replaces
> ar << BOOST_SERIALIZATION_NVP(boost::serialization::base_object<Father>(g));
> by
> ar << boost::serialization::make_nvp("son",
> boost::serialization::base_object<Father>(g));
>

You could also use BOOST_SERIALIZATION_BASE_OBJECT_NVP

In Christ,
Steven Watanabe


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