
11 May
2010
11 May
'10
5:45 p.m.
The question is: What should be the type of XXXX and YYYY?
You'll have to make operator() a template:
template<class T> function
operator()(const T& x_arg, double y_arg);
I was about to do that but then I though that doing so would open a can of uncontrolled overload. What if I want to restrict T to lambda expressions? what would be the best way to do it, enable_if? some special tag? (Do lambda expression have any special tag?) Thank you, Alfredo