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"
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