Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-04-09 14:22:56


Andrey Semashev wrote:

> But will it work with lambda? I.e. will this work:
>
> using namespace std;
> using namespace boost;
>
> for_each(v.begin(), v.end(), lambda::var(cout) << _1);
>
> Note the placeholder is not lambda::_1.

No, this won't work, unfortunately. Lambda doesn't work with Bind's
placeholders. I don't know how difficult it'd be to make it support
is_placeholder.


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