Closed Xottab-DUTY closed 1 year ago
Are you aware how this works with the "original" luabind? My understanding is that at the moment you take the address of the method, the syntactic sugar of default arguments of a method declaration/definition is gone.
Are you aware how this works with the "original" luabind?
Can't say how it works in the original version..
My understanding is that at the moment you take the address of the method, the syntactic sugar of default arguments of a method declaration/definition is gone.
Is there a way to use the syntactic sugar?
Well, until I see proof of the other case, I assume it is not possible to automatically deduce default arguments given a function pointer, since the default arguments are not part of the function type
Can we explicitly tell to luabind default arguments, then?
Well it would be possible to specify default arguments and let luabind genrate the wrapper functions, I guess
Can you help with how to specify them?)
This requires enhancement of the library itself first
Ah.. Okay. I just don't know how to do this. Will leave it as is for now...
When I try to call exported function with default args luabind says, that matching overload is not found and requires to send all arguments. Is there a solution to use default args?
The following code working normally in the old luabind (~beta7-devel.rc4) but wont work with current version
P.S. because of this we are forced to manually create overloads on C++ part (you can look here)