From a8b38b20bfec3f4a49ad7d8c38adf76f2031a094 Mon Sep 17 00:00:00 2001 From: Olivier Commowick Date: Fri, 20 Sep 2019 13:19:00 +0200 Subject: [PATCH] Add usage of _MSVC_LANG for windows C++ standard check (#295) * Add usage of _MSVC_LANG for windows C++ standard check * Use MSC_VER instead or WIN32 --- src/algs/stogo/tools.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algs/stogo/tools.h b/src/algs/stogo/tools.h index 4064c3e0..608ae9f6 100644 --- a/src/algs/stogo/tools.h +++ b/src/algs/stogo/tools.h @@ -36,7 +36,7 @@ class Trial{ friend ostream & operator << (ostream &, RCTrial) ; }; -#if __cplusplus < 201103L +#if (!defined(_MSC_VER) && (__cplusplus < 201103L)) || (defined(_MSC_VER) && (_MSVC_LANG < 201103L)) class TrialGT : public unary_function #else class TrialGT