maths: add namespaced wrapper for abs

This commit is contained in:
Danny Robson 2015-09-15 21:06:23 +10:00
parent 286dd05481
commit 95e5fc5834

View File

@ -32,6 +32,11 @@ abs (T value)
{ return value > 0 ? value : -value; } { return value > 0 ? value : -value; }
namespace util {
template <typename T> T abs (T t) { return ::abs<T> (t); }
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Exponentials // Exponentials
template <typename T> template <typename T>