satoren / kaguya

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

Is there a way to use optional args with overloads ? #69

Closed Sygmei closed 7 years ago

Sygmei commented 7 years ago

For exemple if we have :

class Vector2
{
...
};
class A
{
public:
    void move(int x, int y, bool moveNow = true);
    void move(Vector2 pos, moveNow = true);
};

When binding, how should I use KAGUYA_MEMBER_FUNCTION_OVERLOADS ?

Sygmei commented 7 years ago

Nevermind, I found out the last parameter allows to specify a signature !