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>
|
||||
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:
|
||||
val < lo ? lo:
|
||||
std::move (val);
|
||||
val;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user