
23 Jul
2007
23 Jul
'07
2:14 p.m.
David Abrahams wrote:
on Mon Jul 23 2007, "Peter Dimov"
wrote:
...
It might be easier to just make it work by adding the appropriate A const& overloads to lambda_functor, as we did with boost::bind.
Aren't we going to run into the forwarding problem (at some arity, anyway)?
The automatic equivalent of "const_parameters" only requires one additional overload with everything const&. Lambda only supports up to three arguments so even the full 2^N is feasible. boost::bind uses four overloads in the two-arg case and two overloads for three and up.