From 731c27c0942fb4d7d620627e50f24bb261b9a3d8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 13 Apr 2015 15:20:47 +0100 Subject: [PATCH] Add a 'abs' friend function to StronglyTypedNumber --- src/units.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/units.hh b/src/units.hh index 945f7265..f37dc960 100644 --- a/src/units.hh +++ b/src/units.hh @@ -113,6 +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); } private: ValueType m_value;