mirror of
https://github.com/holub/mame
synced 2025-05-04 21:43:05 +03:00
![]() Previous semantics were encouraged by sol2, and ThePhD admitted it was a bad idea for usertypes with lots of members. sol3 allows to assign members outside a constructor for regular usertypes, but mame can't move to sol3 because it requires C++17. Turns out sol2 also has a way to add members separately, and that is what I used. This helps immensely.
This approach required a fix to warning C5046 copied from here
|
||
---|---|---|
.. | ||
compatibility | ||
as_args.hpp | ||
bind_traits.hpp | ||
call.hpp | ||
compatibility.hpp | ||
container_usertype_metatable.hpp | ||
coroutine.hpp | ||
debug.hpp | ||
demangle.hpp | ||
deprecate.hpp | ||
error.hpp | ||
function_result.hpp | ||
function_types_core.hpp | ||
function_types_overloaded.hpp | ||
function_types_stateful.hpp | ||
function_types_stateless.hpp | ||
function_types_templated.hpp | ||
function_types.hpp | ||
function.hpp | ||
in_place.hpp | ||
inheritance.hpp | ||
load_result.hpp | ||
object.hpp | ||
optional_implementation.hpp | ||
optional.hpp | ||
overload.hpp | ||
property.hpp | ||
protect.hpp | ||
protected_function_result.hpp | ||
protected_function.hpp | ||
proxy_base.hpp | ||
proxy.hpp | ||
raii.hpp | ||
reference.hpp | ||
resolve.hpp | ||
simple_usertype_metatable.hpp | ||
stack_check_get.hpp | ||
stack_check.hpp | ||
stack_core.hpp | ||
stack_field.hpp | ||
stack_get.hpp | ||
stack_guard.hpp | ||
stack_pop.hpp | ||
stack_probe.hpp | ||
stack_proxy.hpp | ||
stack_push.hpp | ||
stack_reference.hpp | ||
stack.hpp | ||
state_view.hpp | ||
state.hpp | ||
string_shim.hpp | ||
table_core.hpp | ||
table_iterator.hpp | ||
table.hpp | ||
thread.hpp | ||
tie.hpp | ||
traits.hpp | ||
tuple.hpp | ||
types.hpp | ||
userdata.hpp | ||
usertype_metatable.hpp | ||
usertype_traits.hpp | ||
usertype.hpp | ||
variadic_args.hpp | ||
wrapper.hpp |