From 8c6d21f97f134f65b28868ce86a10c1dc66780ed Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sat, 3 Mar 2012 20:23:00 +0000 Subject: [PATCH] Added virtual destructors --- gtsam/slam/ProjectionFactor.h | 3 +++ gtsam/slam/StereoFactor.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gtsam/slam/ProjectionFactor.h b/gtsam/slam/ProjectionFactor.h index 77577fbb5..284d10a8c 100644 --- a/gtsam/slam/ProjectionFactor.h +++ b/gtsam/slam/ProjectionFactor.h @@ -67,6 +67,9 @@ namespace gtsam { Base(model, poseKey, pointKey), measured_(measured), K_(K) { } + /** Virtual destructor */ + virtual ~GenericProjectionFactor() {} + /** * print * @param s optional string naming the factor diff --git a/gtsam/slam/StereoFactor.h b/gtsam/slam/StereoFactor.h index 1eefacc96..ae2deeae3 100644 --- a/gtsam/slam/StereoFactor.h +++ b/gtsam/slam/StereoFactor.h @@ -54,7 +54,7 @@ public: Base(model, poseKey, landmarkKey), measured_(measured), K_(K) { } - ~GenericStereoFactor() {} ///< destructor + virtual ~GenericStereoFactor() {} ///< Virtual destructor /** * print