From 0987ae259cd21807b8eeea9d2f8cd56cbbbf7673 Mon Sep 17 00:00:00 2001 From: Ivan Jimenez Date: Sun, 21 Feb 2016 23:36:39 -0500 Subject: [PATCH] [BUGFIX] Fixed Linker Errors in Release Mode --- gtsam_unstable/linear/InequalityFactorGraph.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gtsam_unstable/linear/InequalityFactorGraph.h b/gtsam_unstable/linear/InequalityFactorGraph.h index 2feade32a..96fe0da4b 100644 --- a/gtsam_unstable/linear/InequalityFactorGraph.h +++ b/gtsam_unstable/linear/InequalityFactorGraph.h @@ -19,6 +19,7 @@ #pragma once #include +#include #include #include @@ -38,8 +39,7 @@ public: } /** equals */ - bool equals(const InequalityFactorGraph& other, - double tol = 1e-9) const { + bool equals(const InequalityFactorGraph& other, double tol = 1e-9) const { return Base::equals(other, tol); } @@ -47,18 +47,18 @@ public: * Compute error of a guess. * Infinity error if it violates an inequality; zero otherwise. */ double error(const VectorValues& x) const { - BOOST_FOREACH(const sharedFactor& factor, *this){ + BOOST_FOREACH(const sharedFactor& factor, *this) { if(factor) - if (factor->error(x) > 0) - return std::numeric_limits::infinity(); + if (factor->error(x) > 0) + return std::numeric_limits::infinity(); } return 0.0; } }; /// traits -template<> struct traits : public Testable< - InequalityFactorGraph> { +template<> +struct traits : public Testable { }; } // \ namespace gtsam