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); } };