$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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.