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.
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.
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.