diff --git a/gtsam/geometry/PinholePose.h b/gtsam/geometry/PinholePose.h index 7bcc22172..8d0cc6ed4 100644 --- a/gtsam/geometry/PinholePose.h +++ b/gtsam/geometry/PinholePose.h @@ -161,7 +161,9 @@ private: friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { - ar & BOOST_SERIALIZATION_NVP(pose()); + ar + & boost::serialization::make_nvp("PinholeBase", + boost::serialization::base_object(*this)); } };