boost python wrapping class with getter/setter with const string& arg and return type
3 Oct
2014
3 Oct
'14
9:58 a.m.
Hi class C { public: const std::string& get_name() const; void set_name(const std::string&); 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::get_name, &C::set_name); with the proper includes as in the tutorial, it fails to compile. MM
3708
Age (days ago)
3708
Last active (days ago)
0 comments
1 participants
participants (1)
-
MM