From: Peter van Dijk Date: Fri, 24 Mar 2017 10:28:38 +0000 (+0100) Subject: forward arguments through tuple, preserving rvalue-references X-Git-Tag: rec-4.1.0-alpha1~171^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa16108244bcea485d2ab8dbc55a9b482b400293;p=thirdparty%2Fpdns.git forward arguments through tuple, preserving rvalue-references from luawrapper ad29dde --- diff --git a/ext/luawrapper/include/LuaContext.hpp b/ext/luawrapper/include/LuaContext.hpp index 5d95225fe1..82982beec0 100644 --- a/ext/luawrapper/include/LuaContext.hpp +++ b/ext/luawrapper/include/LuaContext.hpp @@ -1321,7 +1321,7 @@ private: RealReturnType; // we push the parameters on the stack - auto inArguments = Pusher>::push(state, std::make_tuple(std::forward(input)...)); + auto inArguments = Pusher>::push(state, std::forward_as_tuple(std::forward(input)...)); // const int outArgumentsCount = std::tuple_size::value;