From d7603964e9f535501e40f6cbd03a76c0d6b96ec2 Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Sat, 18 Aug 2018 17:28:31 +1200 Subject: [PATCH] another compile error --- source/detail/numeric_utils.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/detail/numeric_utils.hpp b/source/detail/numeric_utils.hpp index 21c48397..6fba408b 100644 --- a/source/detail/numeric_utils.hpp +++ b/source/detail/numeric_utils.hpp @@ -50,11 +50,7 @@ std::string serialize_number_to_string(Number num) template constexpr Number abs(Number val) { - if (val < Number{0}) - { - return -val; - } - return val; + return (val < Number{0}) ? -val : val; }; ///