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