From d2f1d904d9f79eeab157ba967c601a5412dcde2a Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Sat, 20 Apr 2024 20:16:33 +0200 Subject: [PATCH] Use std::isinf --- include/nlohmann/detail/conversions/from_json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nlohmann/detail/conversions/from_json.hpp b/include/nlohmann/detail/conversions/from_json.hpp index 1da83edc3..11eac0a29 100644 --- a/include/nlohmann/detail/conversions/from_json.hpp +++ b/include/nlohmann/detail/conversions/from_json.hpp @@ -55,7 +55,7 @@ ArithmeticTypeTarget static_cast_check_range(const BasicJsonType& j) bool valIsInf = false; if constexpr (std::is_floating_point::value) { - valIsInf = isinf(val); + valIsInf = std::isinf(val); } if ((val < min || val > max) && !valIsInf) {