diff --git a/src/Magnum/Math/Test/ConstantsTest.cpp b/src/Magnum/Math/Test/ConstantsTest.cpp index e68626dd9..98823f9af 100644 --- a/src/Magnum/Math/Test/ConstantsTest.cpp +++ b/src/Magnum/Math/Test/ConstantsTest.cpp @@ -78,7 +78,10 @@ template void ConstantsTest::_constants() { } template void ConstantsTest::_specials() { - constexpr T a = Constants::nan(); + #ifndef CORRADE_MSVC2015_COMPATIBILITY /* NaN is not constexpr */ + constexpr + #endif + T a = Constants::nan(); CORRADE_VERIFY(std::isnan(a)); CORRADE_VERIFY(a != a);