|
Boost Users : |
From: Boris (boriss_at_[hidden])
Date: 2007-03-15 02:27:57
On Thu, 15 Mar 2007 01:03:38 +0200, Rodolfo Lima <rodolfo_at_[hidden]>
wrote:
> Sorry, I answered your message a little too quick. Actually sample::odd
> is a
> member function, so you have to write if_then(bind(&sample::odd, _1) ==
> false, std::cout << _1)
>
> &_1->*&sample::odd would work if sample::odd was an attribute, not a
> member
> function. Remember to use lambda's bind (i.e. boost::lambda::bind), not
> boost::bind.
>
> Let me know if this works.
boost::lambda:bind works. But according to the documentation at
http://www.boost.org/doc/html/lambda/le_in_details.html#lambda.operator_expressions
it should be possible to use ->*, too? When you scroll down to "Member
pointer operator" there is even an example where ->* is used with a member
function?
Boris
> [...]
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net