Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-03-13 08:58:25


pirx wrote:
> hi,
>
> I've got a question regarding the compose_f_gx function object.
> I tried to use it in combination with this small example.

[...]

> // d should also be true, but does not compile
> bool d = compose_f_gx(bind<bool>(equal_to<int>(), _1, 3),
> mem_fn(&Element::getValue))(el);

bool d = bind<bool>(equal_to<int>(), bind(&Element::getValue, _1), 3)(el);

See

http://www.boost.org/libs/bind/bind.html#nested_binds
http://www.boost.org/libs/bind/bind_as_compose.cpp


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