Skip to content

Commit 94201a8

Browse files
committed
Use numeric_limits<T>::is_signed to support Boost.MP types
1 parent 2acd1d6 commit 94201a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/math/ccmath/isinf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ constexpr bool isinf(T x) noexcept
1818
{
1919
if(BOOST_MATH_IS_CONSTANT_EVALUATED(x))
2020
{
21-
if constexpr (std::is_signed_v<T>)
21+
if constexpr (std::numeric_limits<T>::is_signed)
2222
{
2323
return x == std::numeric_limits<T>::infinity() || -x == std::numeric_limits<T>::infinity();
2424
}

0 commit comments

Comments
 (0)