Re: [boost] using lambda's pointer to member function and, boost::function

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

29 Nov
29 Nov
8:17 p.m.
New subject: using lambda's pointer to member function and, boost::function
try boost::lambda::bind(&aux::a, _1, x);
Thanks for your advice, but that's not the kind of solution that I'm looking for. There are some constraints on aux that forbids me to use bind. Please read the thread http://lists.boost.org/boost-users/2006/11/23754.php where I explain the whole situation. Thanks, Rodolfo Lima.
6768
Age (days ago)
6768
Last active (days ago)
1 comments
2 participants
participants (2)
-
Rodolfo Lima
-
Steven Watanabe