|
Boost Users : |
Subject: Re: [Boost-users] Serialization of pointers ? --> loading not working...
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-01-14 11:56:58
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
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