mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Remove trivial destructors from lua_func types
This commit is contained in:
parent
ffb32f45ad
commit
d44a215216
|
@ -195,8 +195,6 @@ struct lambda_lua_func : public lua_func {
|
||||||
stack::push(L, r);
|
stack::push(L, r);
|
||||||
return sizeof...(TRn);
|
return sizeof...(TRn);
|
||||||
}
|
}
|
||||||
|
|
||||||
~lambda_lua_func() {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename TFx, typename T = TFx, bool is_member_pointer = std::is_member_function_pointer<TFx>::value>
|
template<typename TFx, typename T = TFx, bool is_member_pointer = std::is_member_function_pointer<TFx>::value>
|
||||||
|
@ -224,8 +222,6 @@ struct explicit_lua_func : public lua_func {
|
||||||
stack::push(L, std::move(r));
|
stack::push(L, std::move(r));
|
||||||
return sizeof...(TRn);
|
return sizeof...(TRn);
|
||||||
}
|
}
|
||||||
|
|
||||||
~explicit_lua_func() {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename TFx, typename T>
|
template<typename TFx, typename T>
|
||||||
|
@ -264,8 +260,6 @@ struct explicit_lua_func<TFx, T, true> : public lua_func {
|
||||||
stack::push(L, r);
|
stack::push(L, r);
|
||||||
return sizeof...(TRn);
|
return sizeof...(TRn);
|
||||||
}
|
}
|
||||||
|
|
||||||
~explicit_lua_func() {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // sol
|
} // sol
|
||||||
|
|
Loading…
Reference in New Issue
Block a user