2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-25 16:32:15 +00:00

Use numeric_limits<T>::is_signed to support Boost.MP types

This commit is contained in:
Matt Borland
2022-10-28 07:55:34 -07:00
parent 2acd1d62bf
commit 94201a88ba

View File

@@ -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();
}