20 Jul
2009
20 Jul
'09
12:34 p.m.
Vaclav Smilauer wrote:
I should have been clearer why I need that: for properties (for class methods, they can be wrapped directly using just &A::meth1). So an example like this would be more appropriate:
struct A{ int num1; }; [...] python::class_<A>("A").add_property("num1",lambda::bind(&A::num1,_1));
which fails again. How can I access the num1, besides creating separate function?
http://www.boost.org/doc/libs/1_39_0/libs/python/doc/tutorial/doc/html/pytho...