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.
The text was updated successfully, but these errors were encountered:
It's not possible to register constant member functions when registering a class.
Minimal example code:
The above case yields
Semantic Issue: Function cannot return function type 'bool () const'insel::Class:_register_member()when compiling with arecent version of Clang. The code however compiles when the
constkeyword isremoved.
The text was updated successfully, but these errors were encountered: