
7 Feb
2011
7 Feb
'11
9:42 a.m.
On 06/02/2011 16:29, Lorenzo Caminiti wrote:
(*) A _possible_ issue with Alex-Steven syntax is that it does not separate the parameter types from the parameter names. I cannot program the preprocessor to retrieve type and name separately from `double num` -- while I can from `(double)(num)` or `double, num` -- but I think I need the type to pass it as a template parameter to create the functor type `function<int (double)>`...
You can pass the name as well to function<int (double num)>. But why do you need to reference function in the first place?