From dd098943cf446816e44c4669c87d73da32f146fc Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 22 Jan 2015 14:56:33 +1100 Subject: [PATCH] maths: remove rvalref from limit --- maths.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maths.hpp b/maths.hpp index 33fb4296..620c5b0d 100644 --- a/maths.hpp +++ b/maths.hpp @@ -237,11 +237,11 @@ max (const T a, const U b, Args ...args) //----------------------------------------------------------------------------- template 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; }