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

Put friend keyword first #37

Wizzard033 opened this Issue Mar 1, 2015 · 1 comment


2 participants

Wizzard033 commented Mar 1, 2015

I am currently trying to use Swig to bind TGUI to Lua. However, they make a statement that Swig does not recognize "non-conventional type declarations."[1] In SharedWidgetPtr.hpp, I have to change the friend keyword to be placed before the return type. If this is not done, I get that a syntax error is in your header file. I think swapping the location of the friend keyword is a really simple change. Thanks.

bool friend operator ==(const SharedWidgetPtr<T>& left, const U* right) // Error
friend bool operator ==(const SharedWidgetPtr<T>& left, const U* right) // OK


texus added a commit that referenced this issue Mar 1, 2015


This comment has been minimized.


texus commented Mar 1, 2015


@texus texus closed this Mar 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment