diff --git a/AK/Tuple.h b/AK/Tuple.h index 86793ab92e..9bdec66f15 100644 --- a/AK/Tuple.h +++ b/AK/Tuple.h @@ -59,15 +59,17 @@ private: template struct Tuple : Tuple { - Tuple(T&& first, TRest&&... rest) - : Tuple(forward(rest)...) - , value(forward(first)) + + template + Tuple(FirstT&& first, RestT&&... rest) + : Tuple(forward(rest)...) + , value(forward(first)) { } - Tuple(const T& first, const TRest&... rest) - : Tuple(rest...) - , value(first) + Tuple(T&& first, TRest&&... rest) + : Tuple(move(rest)...) + , value(move(first)) { }