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 authored and AreaZR committed Jan 19, 2023
1 parent 9714c01 commit d782ce3
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 d782ce3

Please sign in to comment.