
10 Apr
2007
10 Apr
'07
2:58 a.m.
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@mail.ru