]> granicus.if.org Git - pdns/commitdiff
Replace std::forward/std::make_tuple combo with std::forward_as_tuple
authorSangwhan Moon <sangwhan@iki.fi>
Tue, 4 Oct 2016 06:06:40 +0000 (15:06 +0900)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Oct 2016 13:18:00 +0000 (15:18 +0200)
Quick and dirty fix for #3552. May not work or break compatibility
with other compilers.

(cherry picked from commit 352bc0409454032acc5e8fb256d5ed8f46445b5a)

ext/luawrapper/include/LuaContext.hpp

index 2c4bb30e805c08c1ded1e74b14fc322fdbdaadf2..e9627d689c715c626a10f50eda5d6ea9b09ec9ea 100644 (file)
@@ -1310,7 +1310,7 @@ private:
             RealReturnType;
         
         // we push the parameters on the stack
-        auto inArguments = Pusher<std::tuple<TParameters...>>::push(state, std::make_tuple(std::forward<TParameters>(input)...));
+        auto inArguments = Pusher<std::tuple<TParameters...>>::push(state, std::forward_as_tuple((input)...));
 
         // 
         const int outArgumentsCount = std::tuple_size<RealReturnType>::value;