From fa16108244bcea485d2ab8dbc55a9b482b400293 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 24 Mar 2017 11:28:38 +0100 Subject: [PATCH] forward arguments through tuple, preserving rvalue-references from luawrapper ad29dde --- ext/luawrapper/include/LuaContext.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2