Use std::isinf

pull/4353/head
Arnaud Bienner 2024-04-20 20:16:33 +02:00
parent bd9d0b5bf8
commit d2f1d904d9
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ ArithmeticTypeTarget static_cast_check_range(const BasicJsonType& j)
bool valIsInf = false;
if constexpr (std::is_floating_point<ArithmeticTypeSource>::value)
{
valIsInf = isinf(val);
valIsInf = std::isinf(val);
}
if ((val < min || val > max) && !valIsInf)
{