
17 Dec
2009
17 Dec
'09
12:06 a.m.
Mathias Gaunard wrote:
Andy Venikov a écrit :
I'm not going to debate whether it's right or wrong, but I'm still curious - why did it have to be a template? When bind() is called it already has all the information about the function's signature
Not in the general case. For function pointers or member function pointers, I suppose it is the case though.
It's not possible in general for function pointers either. void f( X x, Y y ); bind( f, _1, _1 ); //? I agree that there are many cases in which it's possible though.