mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
unused lambda parameter warnings
This commit is contained in:
parent
71963f9678
commit
4378747f6f
|
@ -94,7 +94,7 @@ namespace sol {
|
|||
template <typename... FxArgs>
|
||||
static std::function<Signature> get_std_func(types<void>, types<FxArgs...>, lua_State* L, int index) {
|
||||
unsafe_function f(L, index);
|
||||
auto fx = [f = std::move(f), L, index](FxArgs&&... args) -> void {
|
||||
auto fx = [f = std::move(f)](FxArgs&&... args) -> void {
|
||||
f(std::forward<FxArgs>(args)...);
|
||||
};
|
||||
return std::move(fx);
|
||||
|
|
Loading…
Reference in New Issue
Block a user