diff --git a/gtsam_unstable/base/Expression.h b/gtsam_unstable/base/Expression.h index 7b80c788e..0a62fbe37 100644 --- a/gtsam_unstable/base/Expression.h +++ b/gtsam_unstable/base/Expression.h @@ -18,11 +18,7 @@ */ #include -#include -#include -#include #include -#include #include #include @@ -327,24 +323,6 @@ Expression operator*(const Expression& expression1, expression1, expression2); } -// http://stackoverflow.com/questions/16260445/boost-bind-to-operator -template -struct apply_product { - typedef E2 result_type; - E2 operator()(E1 const& x, E2 const& y) const { - return x * y; - } -}; - -/// Construct a product expression, assumes E1 * E2 -> E1 -template -Expression operator*(const Expression& expression1, - const Expression& expression2) { - using namespace boost; - return Expression(boost::bind(apply_product(), _1, _2), - expression1, expression2); -} - //----------------------------------------------------------------------------- /// AD Factor template diff --git a/gtsam_unstable/base/tests/testBAD.cpp b/gtsam_unstable/base/tests/testBAD.cpp index dac1d7ece..95dd0a2de 100644 --- a/gtsam_unstable/base/tests/testBAD.cpp +++ b/gtsam_unstable/base/tests/testBAD.cpp @@ -17,7 +17,12 @@ * @brief unit tests for Block Automatic Differentiation */ +#include +#include +#include #include +#include + #include using namespace std;