
29 Nov
2006
29 Nov
'06
5:57 p.m.
AMDG "Rodolfo Lima" <rodolfo@rodsoft.org> wrote:
Hi, I'm trying to use boost::function with a functor defined with boost::lambda that uses a dereference to a pointer to member function, without success. Here goes what I've done up to now:
<snip>
// This should compile, but doesn't boost::function<int(const aux &)> fm1 = (&protect(_1)->*&aux::a)(x);
try boost::lambda::bind(&aux::a, _1, x); In Christ, Steven Watanabe