GCC warnings can go suck a duck.

This commit is contained in:
ThePhD 2013-12-14 23:31:23 -05:00
parent ed0b83f8b0
commit 6101865c1e

View File

@ -241,9 +241,14 @@ inline auto pop_call(lua_State* L, TFx&& fx, types<Args...>) -> decltype(detail:
return detail::ltr_pop(L, std::forward<TFx>(fx), types<Args...>()); return detail::ltr_pop(L, std::forward<TFx>(fx), types<Args...>());
} }
template<typename... Args> void push_args(lua_State*) {
void push_args(lua_State* L, Args&&... args) {
}
template<typename Arg, typename... Args>
void push_args(lua_State* L, Arg&& arg, Args&&... args) {
using swallow = char[]; using swallow = char[];
stack::push(L, std::forward<Arg>(arg));
void(swallow{'\0', (stack::push(L, std::forward<Args>(args)), '\0')... }); void(swallow{'\0', (stack::push(L, std::forward<Args>(args)), '\0')... });
} }
} // stack } // stack