unused lambda parameter warnings

This commit is contained in:
ThePhD 2018-01-10 08:43:16 -05:00
parent 71963f9678
commit 4378747f6f

View File

@ -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);