Hi
class C {
public:
const std::string& name() const;
std::string& name();
private:
std::string name_;
};
given this class C, how would I expose it to python with the class property
name?
class_<C>("C").
.add_property("name", &C::name, &C::name);
or do I use 2 mem function pointers to distinguish the 2 names, and pass
those 2 pointers?
MM
_______________________________________________ Cplusplus-sig mailing list [email protected] https://mail.python.org/mailman/listinfo/cplusplus-sig
