Added virtual destructors

release/4.3a0
Richard Roberts 2012-03-03 20:23:00 +00:00
parent 5e830a01ef
commit 8c6d21f97f
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -54,7 +54,7 @@ public:
Base(model, poseKey, landmarkKey), measured_(measured), K_(K) {
}
~GenericStereoFactor() {} ///< destructor
virtual ~GenericStereoFactor() {} ///< Virtual destructor
/**
* print