1
0
mirror of https://github.com/nlohmann/json synced 2024-11-08 21:50:07 +00:00

Use std::isinf

This commit is contained in:
Arnaud Bienner 2024-04-20 20:16:33 +02:00
parent bd9d0b5bf8
commit d2f1d904d9

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)
{