From ba903536c8f74185e7a037363be422ff16b5dcc0 Mon Sep 17 00:00:00 2001 From: thduynguyen Date: Tue, 9 Dec 2014 22:29:21 -0500 Subject: [PATCH] fix ACTIVE/INACTIVE constants as Frank suggested --- gtsam_unstable/linear/QPSolver.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;