diff --git a/gtsam/slam/simulated2DConstraints.h b/gtsam/slam/simulated2DConstraints.h index a7ad007d7..06e611e44 100644 --- a/gtsam/slam/simulated2DConstraints.h +++ b/gtsam/slam/simulated2DConstraints.h @@ -57,7 +57,7 @@ namespace gtsam { struct ScalarCoordConstraint1: public BoundingConstraint1 { typedef BoundingConstraint1 Base; ///< Base class convenience typedef typedef boost::shared_ptr > shared_ptr; ///< boost::shared_ptr convenience typedef - typedef typename::KEY::Value Point; ///< Constrained variable type + typedef typename KEY::Value Point; ///< Constrained variable type /** * Constructor for constraint @@ -105,7 +105,7 @@ namespace gtsam { * @param b is the second Lie element * @return a scalar distance between values */ - template + template double range_trait(const T1& a, const T2& b) { return a.dist(b); } /**