Boost logo

Boost :

From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-04-09 22:58:58


Hello Peter,

Monday, April 9, 2007, 10:22:56 PM, you wrote:

> 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.

Well, that's exactly what I wanted to have. As a user I see no need in
different placeholders for lambda and bind.

-- 
Best regards,
 Andrey                            mailto:andysem_at_[hidden]

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