23 Jun
2010
23 Jun
'10
4 p.m.
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