diff --git a/gtsam/base/types.h b/gtsam/base/types.h index 7973e3d34..2d593409c 100644 --- a/gtsam/base/types.h +++ b/gtsam/base/types.h @@ -73,10 +73,14 @@ namespace gtsam { #ifdef _MSC_VER +// Define some common g++ functions and macros that MSVC does not have + #include -using boost::math::isfinite; -using boost::math::isnan; -using boost::math::isinf; +namespace std { + using boost::math::isfinite; + using boost::math::isnan; + using boost::math::isinf; +} #include #ifndef M_PI