diff --git a/gtsam_unstable/base/tests/testBAD.cpp b/gtsam_unstable/base/tests/testBAD.cpp index e97b8c6f3..91f16b721 100644 --- a/gtsam_unstable/base/tests/testBAD.cpp +++ b/gtsam_unstable/base/tests/testBAD.cpp @@ -29,21 +29,9 @@ namespace gtsam { -/// Base class -template -class Expression { - -public: - - typedef Expression This; - typedef boost::shared_ptr shared_ptr; - - virtual T value(const Values& values) const = 0; -}; - /// Constant Expression template -class ConstantExpression: public Expression { +class ConstantExpression { T value_; @@ -61,7 +49,7 @@ public: /// Leaf Expression template -class LeafExpression: public Expression { +class LeafExpression { Key key_; @@ -77,25 +65,26 @@ public: }; /// Expression version of transform -LeafExpression transformTo(const Expression& x, - const Expression& p) { +template +LeafExpression transformTo(const E1& x, const E2& p) { return LeafExpression(0); } /// Expression version of project -LeafExpression project(const Expression& p) { +template +LeafExpression project(const E& p) { return LeafExpression(0); } /// Expression version of uncalibrate -LeafExpression uncalibrate(const Expression& K, - const Expression& p) { +template +LeafExpression uncalibrate(const E1& K, const E2& p) { return LeafExpression(0); } /// Expression version of Point2.sub -LeafExpression operator -(const Expression& p, - const Expression& q) { +template +LeafExpression operator -(const E1& p, const E2& q) { return LeafExpression(0); }