From 53306630db3a6be4147d92e2432fd4ea67306285 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 27 Apr 2017 17:23:40 +0000 Subject: [PATCH] Fix for Oracle 12.4 compiler --- include/boost/integer/common_factor_rt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/integer/common_factor_rt.hpp b/include/boost/integer/common_factor_rt.hpp index 7ecedd8..a4f44d4 100644 --- a/include/boost/integer/common_factor_rt.hpp +++ b/include/boost/integer/common_factor_rt.hpp @@ -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; } };