From 5abe56aaab88d2d18d73be9008296797656d9b71 Mon Sep 17 00:00:00 2001 From: John Rogers Date: Mon, 7 Feb 2011 16:23:06 +0000 Subject: [PATCH] Changed serialization of FastMap to correctly chain the base Map class serialization included with boost::serialization --- gtsam/base/FastMap.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gtsam/base/FastMap.h b/gtsam/base/FastMap.h index b26dfe1c9..de79db23b 100644 --- a/gtsam/base/FastMap.h +++ b/gtsam/base/FastMap.h @@ -20,6 +20,7 @@ #include #include +#include #include namespace gtsam { @@ -57,10 +58,8 @@ public: friend class boost::serialization::access; template void serialize(ARCHIVE & ar, const unsigned int version) { - //You are not supposed to do this: - boost::serialization::serialize(ar, *this, version); - //Instead you are supposed to do this: but it doesnt work - // ar & boost::serialization::base_object(*this); + + ar & boost::serialization::base_object(*this); } };