$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [python][lambda] thin wrapper functions using boost.lambda
From: Vaclav Smilauer (eudoxos_at_[hidden])
Date: 2009-07-20 02:27:46
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