Add a 'abs' friend function to StronglyTypedNumber

This commit is contained in:
Maxime Coste 2015-04-13 15:20:47 +01:00
parent e8bdc274b4
commit 731c27c094

View File

@ -113,6 +113,7 @@ public:
explicit constexpr operator bool() const { return m_value; } explicit constexpr operator bool() const { return m_value; }
friend size_t hash_value(RealType val) { return hash_value(val.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); }
private: private:
ValueType m_value; ValueType m_value;