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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user