Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-07-23 10:14:07


David Abrahams wrote:
> on Mon Jul 23 2007, "Peter Dimov" <pdimov-AT-mmltd.net> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net