sol2
sol2 copied to clipboard
How to convert on get in overloaded functions?
I have a function with multiple overloads. And I hope I can convert one of the parameters from custom type.
void foo(int i);
void foo(int i, int j);
class CMyInt;
CMyInt mi;
foo(mi);
I have implemented the sol_lua_check and sol_lua_get to convert CMyInt to int, but sol fails to resolve the overloads.