Skip to content

Commit eeb10c2

Browse files
committed
Add extra parentheses for concept tests
1 parent 5a50ec7 commit eeb10c2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/boost/math/ccmath/isinf.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace boost::math::ccmath {
2323

2424
template <typename T>
25-
constexpr bool isinf(T x) noexcept
25+
constexpr bool (isinf)(T x) noexcept
2626
{
2727
if(BOOST_MATH_IS_CONSTANT_EVALUATED(x))
2828
{
@@ -41,11 +41,11 @@ constexpr bool isinf(T x) noexcept
4141

4242
if constexpr (!std::is_integral_v<T>)
4343
{
44-
return isinf(x);
44+
return (isinf)(x);
4545
}
4646
else
4747
{
48-
return isinf(static_cast<double>(x));
48+
return (isinf)(static_cast<double>(x));
4949
}
5050
}
5151
}

include/boost/math/ccmath/isnan.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace boost::math::ccmath {
2222

2323
template <typename T>
24-
inline constexpr bool isnan(T x)
24+
inline constexpr bool (isnan)(T x)
2525
{
2626
if(BOOST_MATH_IS_CONSTANT_EVALUATED(x))
2727
{
@@ -33,11 +33,11 @@ inline constexpr bool isnan(T x)
3333

3434
if constexpr (!std::is_integral_v<T>)
3535
{
36-
return isnan(x);
36+
return (isnan)(x);
3737
}
3838
else
3939
{
40-
return isnan(static_cast<double>(x));
40+
return (isnan)(static_cast<double>(x));
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)