mirror of
https://github.com/nlohmann/json
synced 2024-11-08 21:50:07 +00:00
Use std::isinf
This commit is contained in:
parent
bd9d0b5bf8
commit
d2f1d904d9
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user