Fix StronglyTypedNumbers::abs

This commit is contained in:
Maxime Coste 2015-04-17 01:01:58 +01:00
parent b584fd3bfc
commit 3982131753

View File

@ -113,7 +113,7 @@ public:
explicit constexpr operator bool() const { return m_value; }
friend size_t hash_value(RealType val) { return hash_value(val.m_value); }
friend size_t abs(RealType val) { return abs(val.m_value); }
friend size_t abs(RealType val) { return val.m_value < ValueType(0) ? -val.m_value : val.m_value; }
private:
ValueType m_value;