Index: include/math.h =================================================================== --- include/math.h +++ include/math.h @@ -766,6 +766,14 @@ inline _LIBCPP_INLINE_VISIBILITY long double abs(long double __lcpp_x) _NOEXCEPT {return ::fabsl(__lcpp_x);} + +template +inline _LIBCPP_INLINE_VISIBILITY +typename std::enable_if< + std::is_integral<_A1>::value && + !std::is_unsigned<_A1>::value, // allows for long long int, long int, int +_A1>::type +abs(_A1 __lcpp_x) _NOEXCEPT {return abs(__lcpp_x);} #endif // !(defined(_AIX) || defined(__sun__)) // acos