diff --git a/include/boost/math/ccmath/isinf.hpp b/include/boost/math/ccmath/isinf.hpp index 706b9605c2..338f7a7b0b 100644 --- a/include/boost/math/ccmath/isinf.hpp +++ b/include/boost/math/ccmath/isinf.hpp @@ -22,7 +22,7 @@ namespace boost::math::ccmath { template -constexpr bool isinf(T x) noexcept +constexpr bool (isinf)(T x) noexcept { if(BOOST_MATH_IS_CONSTANT_EVALUATED(x)) { @@ -41,11 +41,11 @@ constexpr bool isinf(T x) noexcept if constexpr (!std::is_integral_v) { - return isinf(x); + return (isinf)(x); } else { - return isinf(static_cast(x)); + return (isinf)(static_cast(x)); } } } diff --git a/include/boost/math/ccmath/isnan.hpp b/include/boost/math/ccmath/isnan.hpp index ca915a4642..2394abfb7c 100644 --- a/include/boost/math/ccmath/isnan.hpp +++ b/include/boost/math/ccmath/isnan.hpp @@ -21,7 +21,7 @@ namespace boost::math::ccmath { template -inline constexpr bool isnan(T x) +inline constexpr bool (isnan)(T x) { if(BOOST_MATH_IS_CONSTANT_EVALUATED(x)) { @@ -33,11 +33,11 @@ inline constexpr bool isnan(T x) if constexpr (!std::is_integral_v) { - return isnan(x); + return (isnan)(x); } else { - return isnan(static_cast(x)); + return (isnan)(static_cast(x)); } } }