From c95cd18ec4c4b731e5a636288aa97360a28ee8ff Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Fri, 22 Jun 2012 15:24:49 +0000 Subject: [PATCH] Fixed namespace of isfinite, etc - in std --- gtsam/base/types.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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