mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
GCC warnings can go suck a duck.
This commit is contained in:
parent
ed0b83f8b0
commit
6101865c1e
|
@ -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...>());
|
||||
}
|
||||
|
||||
template<typename... Args>
|
||||
void push_args(lua_State* L, Args&&... args) {
|
||||
void push_args(lua_State*) {
|
||||
|
||||
}
|
||||
|
||||
template<typename Arg, typename... Args>
|
||||
void push_args(lua_State* L, Arg&& arg, Args&&... args) {
|
||||
using swallow = char[];
|
||||
stack::push(L, std::forward<Arg>(arg));
|
||||
void(swallow{'\0', (stack::push(L, std::forward<Args>(args)), '\0')... });
|
||||
}
|
||||
} // stack
|
||||
|
|
Loading…
Reference in New Issue
Block a user