diff --git a/src/hb-algs.hh b/src/hb-algs.hh index 52d40923e..d377772e0 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -36,15 +36,15 @@ struct { - template T - operator () (const T& v) const { return v; } + template auto + operator () (T&& v) const HB_AUTO_RETURN ( hb_forward (v) ) } HB_FUNCOBJ (hb_identity); struct { template bool - operator () (const T& v) const { return bool (v); } + operator () (T&& v) const { return bool (hb_forward (v)); } } HB_FUNCOBJ (hb_bool);