Fix StronglyTypedNumbers::abs
This commit is contained in:
parent
b584fd3bfc
commit
3982131753
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user