diff --git a/gtsam_unstable/linear/QPSolver.h b/gtsam_unstable/linear/QPSolver.h index 85a387140..8d51322ae 100644 --- a/gtsam_unstable/linear/QPSolver.h +++ b/gtsam_unstable/linear/QPSolver.h @@ -13,11 +13,11 @@ #include #include -#define ACTIVE 0.0 -#define INACTIVE std::numeric_limits::infinity() - namespace gtsam { +static const double ACTIVE = 0.0; +static const double INACTIVE = std::numeric_limits::infinity(); + /// This struct holds the state of QPSolver at each iteration struct QPState { VectorValues values;