diff --git a/cpp/Key.h b/cpp/Key.h index cc60d4812..368d8f2aa 100644 --- a/cpp/Key.h +++ b/cpp/Key.h @@ -12,8 +12,9 @@ #include #include #include +#ifdef GTSAM_MAGIC_KEY #include -#include +#endif #include "Testable.h" @@ -36,7 +37,7 @@ namespace gtsam { // Constructors: - TypedSymbol():j_(boost::integer_traits::const_max) {} + TypedSymbol():j_(0) {} TypedSymbol(size_t j):j_(j) {} // Get stuff: @@ -148,7 +149,7 @@ namespace gtsam { public: /** Default constructor */ - Symbol() : c_(0), j_(boost::integer_traits::const_max) {} + Symbol() : c_(0), j_(0) {} /** Copy constructor */ Symbol(const Symbol& key) : c_(key.c_), j_(key.j_) {}