Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-04-18 05:51:24


From: "Giovanni Bajo" <giovannibajo_at_[hidden]>
> And if you take me example, you see that bind() is used to redistribute
the
> arguments. chain() just makes sure that all the arguments are correctly
> exposed. A bind-only solution would be something weird like:
>
> bind2(foo, _1, _2)(bar, _3, _4);
> bind2(foo, _1, _2)(bar, _1, _2); // call both with the same parameters.

I would expect a bind-only solution to be

bind(foo, _1, _2), bind(bar, _3, _4).

It happens to be implemented already in Lambda.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk