$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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