Update for CI
None
This commit is contained in:
parent
5450029dca
commit
555b202e61
@ -3908,7 +3908,7 @@ struct value_in_range_of_impl2<OfType, T, false, false>
|
|||||||
static constexpr bool test(T val)
|
static constexpr bool test(T val)
|
||||||
{
|
{
|
||||||
using CommonType = typename std::common_type<OfType, T>::type;
|
using CommonType = typename std::common_type<OfType, T>::type;
|
||||||
return static_cast<CommonType>(val) <= static_cast<CommonType>(std::numeric_limits<OfType>::max());
|
return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3918,7 +3918,7 @@ struct value_in_range_of_impl2<OfType, T, true, false>
|
|||||||
static constexpr bool test(T val)
|
static constexpr bool test(T val)
|
||||||
{
|
{
|
||||||
using CommonType = typename std::common_type<OfType, T>::type;
|
using CommonType = typename std::common_type<OfType, T>::type;
|
||||||
return static_cast<CommonType>(val) <= static_cast<CommonType>(std::numeric_limits<OfType>::max());
|
return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3928,7 +3928,7 @@ struct value_in_range_of_impl2<OfType, T, false, true>
|
|||||||
static constexpr bool test(T val)
|
static constexpr bool test(T val)
|
||||||
{
|
{
|
||||||
using CommonType = typename std::common_type<OfType, T>::type;
|
using CommonType = typename std::common_type<OfType, T>::type;
|
||||||
return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>(std::numeric_limits<OfType>::max());
|
return val >= 0 && static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3939,8 +3939,8 @@ struct value_in_range_of_impl2<OfType, T, true, true>
|
|||||||
static constexpr bool test(T val)
|
static constexpr bool test(T val)
|
||||||
{
|
{
|
||||||
using CommonType = typename std::common_type<OfType, T>::type;
|
using CommonType = typename std::common_type<OfType, T>::type;
|
||||||
return static_cast<CommonType>(val) >= static_cast<CommonType>(std::numeric_limits<OfType>::min())
|
return static_cast<CommonType>(val) >= static_cast<CommonType>((std::numeric_limits<OfType>::min)())
|
||||||
&& static_cast<CommonType>(val) <= static_cast<CommonType>(std::numeric_limits<OfType>::max());
|
&& static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user