-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling C++ functions with default arguments from Lua #40
Comments
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. |
Can't say how it works in the original version..
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)
The text was updated successfully, but these errors were encountered: