From a5783dd396a1bb9de381b7247fbd22f05dec73ed Mon Sep 17 00:00:00 2001 From: beaglejoe Date: Tue, 28 Jun 2016 20:02:29 +0000 Subject: [PATCH] Fix for #964 from DAP git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6440 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 92616d0eab9a05dec38e2978f7eb70fb2551199b Former-commit-id: a7003f74d1617ef5670bea5dc8225cbe25c3ee63 --- src/libs/learning/policy.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/learning/policy.cpp b/src/libs/learning/policy.cpp index e6cd604e9..cdc5de090 100644 --- a/src/libs/learning/policy.cpp +++ b/src/libs/learning/policy.cpp @@ -18,6 +18,12 @@ #include "MathFunctions.h" #ifdef WIN32 #include +#else +// std::isnan should be available as of C++11 (201103L) but some compiler +// vendors set this even though support is incomplete +#if __cplusplus>=201402L // compiler claims to be C++14 compliant +#define isnan std::isnan +#endif #endif // WIN32 #include