maths: remove rvalref from limit
This commit is contained in:
parent
d63457c567
commit
dd098943cf
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user