
20 Jul
2009
20 Jul
'09
6:27 a.m.
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? Thanks, Vaclav