mirror of
https://github.com/boostorg/integer.git
synced 2025-11-01 08:41:37 +01:00
Fix for Oracle 12.4 compiler
This commit is contained in:
@@ -98,7 +98,7 @@ namespace boost {
|
||||
inline static T BOOST_CXX14_CONSTEXPR abs(const T& val) BOOST_GCD_NOEXCEPT(T)
|
||||
{
|
||||
// This sucks, but std::abs is not constexpr :(
|
||||
return val < 0 ? -val : val;
|
||||
return val < T(0) ? -val : val;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user