Skip to content
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

error when binding class has 2 same function #71

Open
boruis opened this issue Sep 22, 2017 · 1 comment
Open

error when binding class has 2 same function #71

boruis opened this issue Sep 22, 2017 · 1 comment

Comments

@boruis
Copy link

boruis commented Sep 22, 2017

hi,
i have meet a problem with binding class to lua.
when there is a member function has same name with another static member function, compiler will get error, when using addFunction to binding them.
for example: https://github.com/elnormous/ouzel/blob/master/ouzel/math/Vector2.hpp
Vector2 has two function with same name "add"

can anyone tell me how to solve this problem.
thanks.

@karliss
Copy link

karliss commented Sep 22, 2017

Solution explained in elnormous/ouzel#24 but it wouldn't hurt updating the example to demonstrate overload with function that is actually overloaded instead of overload1 and overload2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants