From 3a10e661b83fe11aad001b280a21982ec70717ff Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Sat, 18 Aug 2018 17:24:34 +1200 Subject: [PATCH] constexpr concern no longer valid --- source/detail/numeric_utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/detail/numeric_utils.hpp b/source/detail/numeric_utils.hpp index 990d28b8..21c48397 100644 --- a/source/detail/numeric_utils.hpp +++ b/source/detail/numeric_utils.hpp @@ -96,7 +96,7 @@ float_equals(const LNumber &lhs, const RNumber &rhs, "Cannot extract epsilon from a number that isn't a floating point type"); // NANs always compare false with themselves - if ((lhs != lhs) || (rhs != rhs)) // std::isnan isn't constexpr + if (std::isnan(lhs) || std::isnan(rhs)) { return false; }