
BOOST_SERIALIZATION_BASE_OBJECT_NVP isnt working in a non intrusive case, since the macro uses this. Steven Watanabe-4 wrote:
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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://old.nabble.com/-Boost-serialization--non-intrusive---derivated-class-... Sent from the Boost - Users mailing list archive at Nabble.com.