You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class X{};
class A{
public:
X& foo();
const X& foo() const;
};
And I want to bind it to couple of script languages (chaiscript, python) and I need information about constness of given method for example pybind handles it by adding an additional tag
Sorry, but it is not entirely clear to me what the use case is. refl-cpp generally differentiates members by their name only. That is, a member descriptor in refl-cpp is responsible for all overloads of a member function "foo". If you would like to obtain a pointer to a member function, you could use the .pointer member variable of the descriptor. It is only available if .is_resolved is true though, otherwise, you will be required to use the .resolve() member function and provide it with the full type of the function pointer which is required. There currently is no easier way to resolve an overloaded function pointer, but work is being done to resolve this issue.
Hi!
I got an class
And I want to bind it to couple of script languages (chaiscript, python) and I need information about constness of given method for example pybind handles it by adding an additional tag
How to properly reflect those methods using refl-cpp library?
The text was updated successfully, but these errors were encountered: