Revert the check fro std::isnan() and isnan()

This commit is contained in:
Erik Hofman 2016-05-24 14:51:17 +02:00
parent 03a8a2a3fb
commit e9ea5e9036

View File

@ -153,10 +153,10 @@ public:
/// Use with care: allways code that you do not need to use that!
static bool isNaN(const T& v)
{
#ifdef HAVE_ISNAN
return (isnan(v) != 0);
#elif defined HAVE_STD_ISNAN
#ifdef HAVE_STD_ISNAN
return std::isnan(v);
#elif defined HAVE_ISNAN
return (isnan(v) != 0);
#else
// Use that every compare involving a NaN returns false
// But be careful, some usual compiler switches like for example