13 Mar
2003
13 Mar
'03
1:58 p.m.
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