diff --git a/cpp/BetweenFactor.h b/cpp/BetweenFactor.h index b9b7157b6..a8fc40163 100644 --- a/cpp/BetweenFactor.h +++ b/cpp/BetweenFactor.h @@ -17,12 +17,12 @@ namespace gtsam { * A class for a measurement predicted by "between(config[key1],config[key2])" * T is the Lie group type, Config where the T's are gotten from */ - template - class BetweenFactor: public NonlinearFactor2 { + template + class BetweenFactor: public NonlinearFactor2 { private: - typedef NonlinearFactor2 Base; + typedef NonlinearFactor2 Base; T measured_; /** The measurement */ @@ -32,7 +32,7 @@ namespace gtsam { typedef typename boost::shared_ptr shared_ptr; /** Constructor */ - BetweenFactor(const Key& key1, const Key& key2, const T& measured, + BetweenFactor(const Key1& key1, const Key2& key2, const T& measured, const SharedGaussian& model) : Base(model, key1, key2), measured_(measured) { } @@ -47,8 +47,8 @@ namespace gtsam { /** equals */ bool equals(const NonlinearFactor& expected, double tol) const { - const BetweenFactor *e = - dynamic_cast*> (&expected); + const BetweenFactor *e = + dynamic_cast*> (&expected); return e != NULL && Base::equals(expected) && this->measured_.equals( e->measured_, tol); }