maths: remove rvalref from limit

This commit is contained in:
Danny Robson 2015-01-22 14:56:33 +11:00
parent d63457c567
commit dd098943cf

View File

@ -237,11 +237,11 @@ max (const T a, const U b, Args ...args)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T, typename U, typename V> template <typename T, typename U, typename V>
T T
limit (const T &&val, const U &&hi, const V &&lo) limit (const T val, const U hi, const V lo)
{ {
return val > hi ? hi: return val > hi ? hi:
val < lo ? lo: val < lo ? lo:
std::move (val); val;
} }