|
Boost Users : |
Subject: Re: [Boost-users] serialize derived class object throughboost::serialization
From: Robert Ramey (ramey_at_[hidden])
Date: 2012-04-28 13:56:46
template<class Archive>void Derived::serialize(Archive & ar,const unsigned
int version){ ar & boost::serialization::base_object<Base>(*this); // add ar
& boost::serialization::void_cast_register<Derived,Base> (static_cast<Derived*>(NULL), static_cast<Base*>(NULL) ); cout<<"serializingderived class object"<<endl; ar &
b;}BOOST_CLASS_EXPORT_GUID(Derived,"Derived");
I just checked the documenation and see that there
is a mistake in the example. I'll fix this.
Robert Ramey
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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