maths: add namespaced wrapper for abs
This commit is contained in:
parent
286dd05481
commit
95e5fc5834
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user