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

Put friend keyword first #37

Closed
Wizzard033 opened this issue Mar 1, 2015 · 1 comment
Closed

Put friend keyword first #37

Wizzard033 opened this issue Mar 1, 2015 · 1 comment

Comments

@Wizzard033
Copy link

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

[1] http://www.swig.org/Doc3.0/SWIG.html#SWIG_nn8

@texus
Copy link
Owner

texus commented Mar 1, 2015

Done

@texus texus closed this as completed Mar 1, 2015
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