From 422e8e2cda89b1c3443e34bbf4ee300c35996637 Mon Sep 17 00:00:00 2001 From: dellaert Date: Sat, 21 Feb 2015 12:38:52 +0100 Subject: [PATCH] Fixed serialization --- gtsam/geometry/PinholePose.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } };