sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

How to convert on get in overloaded functions?

Open Domain opened this issue 2 years ago • 0 comments

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.

Domain avatar Oct 27 '23 02:10 Domain