satoren / kaguya

C++ binding to Lua
Boost Software License 1.0
345 stars 70 forks source link

error when binding class has 2 same function #71

Open boruis opened 7 years ago

boruis commented 7 years ago

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 commented 7 years ago

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.