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

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;