another compile error

This commit is contained in:
Crzyrndm 2018-08-18 17:28:31 +12:00
parent 3a10e661b8
commit d7603964e9

View File

@ -50,11 +50,7 @@ std::string serialize_number_to_string(Number num)
template <typename Number>
constexpr Number abs(Number val)
{
if (val < Number{0})
{
return -val;
}
return val;
return (val < Number{0}) ? -val : val;
};
/// <summary>