Open uyha opened 9 months ago
so adding the following overloads makes it work, but I wonder why this is not done automatically?
template <typename Handler>
auto sol_lua_check(sol::types<sol::nested<A>>,
lua_State *L,
int index,
Handler &&handler,
sol::stack::record &tracking) -> bool {
return sol_lua_check<Handler>(sol::types<A>{}, L, index, handler, tracking);
}
auto sol_lua_get(sol::types<sol::nested<A>>,
lua_State *L,
int index,
sol::stack::record &tracking) -> A {
return sol_lua_get(sol::types<A>{}, L, index, tracking);
}
I am trying to use the ADL customization points to turn a Lua table to a custom type using the
get<CustomType>()
syntax. For getting a single value, it works as expected. However, when I put that custom type into astd::vector
the program crashes.Here is the program that I'm working on:
What am I doing wrong here?