
3 Sep
2010
3 Sep
'10
11:50 a.m.
david, why do you need to number the lambdas? doesn't the "nested index" of the args refer to the level of nesting instead of the number given to the lam<> template?
after reading the link larry posted (1), let me correct my question: does lam need to know the number of parameters of the resulting function? Boost.Bind simply ignores additional arguments, and generates a compiler error for insufficient arguments. void f(int,int); bind(&f,3,_1)(1,2); // -> f(3,1) (1) http://bitbucket.org/camior/de-bruijn-bind/src#cl-45