From 49ce1e0449f04a6aed4e5023f35fbf66d2eeea7d Mon Sep 17 00:00:00 2001 From: Ladislav Michl Date: Wed, 7 Aug 2024 10:09:24 +0200 Subject: [PATCH] Base: Quantity: use std::nan --- src/Base/Quantity.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Base/Quantity.cpp b/src/Base/Quantity.cpp index a5b1d74719..41002c6f66 100644 --- a/src/Base/Quantity.cpp +++ b/src/Base/Quantity.cpp @@ -22,18 +22,17 @@ #include "PreCompiled.h" #ifndef _PreComp_ -#ifdef FC_OS_WIN32 #define _USE_MATH_DEFINES -#endif // FC_OS_WIN32 +#include #include #endif #include #include -#include "Quantity.h" + #include "Exception.h" +#include "Quantity.h" #include "UnitsApi.h" -#include /** \defgroup Units Units system \ingroup BASE @@ -282,7 +281,7 @@ bool Quantity::isQuantity() const // true if it has a number with or without a unit bool Quantity::isValid() const { - return !boost::math::isnan(myValue); + return !std::isnan(myValue); } void Quantity::setInvalid()