From de3e1c3ed1c73561512d6d2598e8bcbf07f3bc91 Mon Sep 17 00:00:00 2001 From: Paul Furgale Date: Mon, 29 Sep 2014 07:22:25 +0200 Subject: [PATCH] Fixed the product compilation --- gtsam_unstable/base/tests/testBAD.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gtsam_unstable/base/tests/testBAD.cpp b/gtsam_unstable/base/tests/testBAD.cpp index 481efc2ed..75e668fa0 100644 --- a/gtsam_unstable/base/tests/testBAD.cpp +++ b/gtsam_unstable/base/tests/testBAD.cpp @@ -139,7 +139,8 @@ class UnaryExpression: public ExpressionNode { public: - typedef T (*function)(const E&, boost::optional); + //typedef T (*function)(const E&, boost::optional); + typedef boost::function)> function; private: @@ -191,9 +192,10 @@ class BinaryExpression: public ExpressionNode { public: - typedef T (*function)(const E1&, const E2&, boost::optional, - boost::optional); - + //typedef T (*function)(const E1&, const E2&, boost::optional, + // boost::optional); + typedef boost::function, + boost::optional)> function; private: boost::shared_ptr > expression1_; @@ -461,7 +463,7 @@ TEST(BAD, test) { // Create expression tree Expression p_cam(transformTo, x, p); Expression projection(project, p_cam); - Expression uv_hat(uncalibrate, K, projection); + Expression uv_hat(uncalibrate, K, projection); // Check keys std::set expectedKeys; @@ -489,7 +491,7 @@ TEST(BAD, test) { TEST(BAD, compose) { Expression R1(1), R2(2); -// Expression R3 = R1 * R2; + Expression R3 = R1 * R2; } /* ************************************************************************* */