Skip to content

Commit

Permalink
Use numeric_limits<T>::is_signed to support Boost.MP types
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Oct 29, 2022
1 parent 2acd1d6 commit 94201a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/math/ccmath/isinf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ constexpr bool isinf(T x) noexcept
{
if(BOOST_MATH_IS_CONSTANT_EVALUATED(x))
{
if constexpr (std::is_signed_v<T>)
if constexpr (std::numeric_limits<T>::is_signed)
{
return x == std::numeric_limits<T>::infinity() || -x == std::numeric_limits<T>::infinity();
}
Expand Down

0 comments on commit 94201a8

Please sign in to comment.