
Thanks for your quick answer ! But the orientedPoints do work do work perfectly ! (Even without specifying the derived class) The problem is with the pointer to Sensor* contained in the SensorReading class .... And it seems to me this is not a derived class .... I'll keep trying ... ----- Original Message ----- From: "Robert Ramey" <ramey@rrsd.com> Newsgroups: gmane.comp.lib.boost.user To: <boost-users@lists.boost.org> Sent: Thursday, January 14, 2010 5:56 PM Subject: Re: Serialization of pointers ? --> loading notworking...
replace friend class boost::serialization::access; template <class Archive> void serialize(Archive& ar, const unsigned int version){ ar & this->x & this->y & theta; }
with something like: friend class boost::serialization::access; template <class Archive> void serialize(Archive& ar, const unsigned int version){ ar & boost::serialization::base_object<?>(*this); }
Look through the documentation and samples on how to serialize derived classes.
Robert Ramey