
On Mon, Feb 7, 2011 at 4:42 AM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
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)>.
Cool. I have incorporated this suggestion in the new email thread "Simplifying the parenthesized syntax", thanks.
But why do you need to reference function in the first place?
To pass local functions as template parameters using this trick: http://lists.boost.org/Archives/boost/2010/09/170888.php -- Lorenzo