diff --git a/gtsam/base/types.h b/gtsam/base/types.h index f50f21d43..aca04a14b 100644 --- a/gtsam/base/types.h +++ b/gtsam/base/types.h @@ -299,6 +299,8 @@ namespace gtsam { // Define some common g++ functions and macros we use that MSVC does not have +#if (_MSC_VER < 1800) + #include namespace std { template inline int isfinite(T a) { @@ -309,6 +311,8 @@ namespace std { return (int)boost::math::isinf(a); } } +#endif + #include #ifndef M_PI #define M_PI (boost::math::constants::pi())