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

Can't register constant member functions #31

Closed
Systemcluster opened this issue Apr 22, 2014 · 2 comments
Closed

Can't register constant member functions #31

Systemcluster opened this issue Apr 22, 2014 · 2 comments

Comments

@Systemcluster
Copy link

It's not possible to register constant member functions when registering a class.

Minimal example code:

class C {
public:
   bool get() const;
}
bool C::get() const {return true;}

//…
sel::State state;
state["C“].SetClass<C>("get", &C::get);

The above case yields Semantic Issue: Function cannot return function type 'bool () const' in sel::Class:_register_member() when compiling with a
recent version of Clang. The code however compiles when the const keyword is
removed.

@jeremyong
Copy link
Owner

Thanks for opening the ticket. I'll investigate.

@jeremyong
Copy link
Owner

As mentioned on the other ticket this is resolved by 4059833.

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