Subject: Re: [boost] Case study: Boost.Local versus Boost.Phoenix
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2011-02-07 11:52:49
On Mon, Feb 7, 2011 at 4:42 AM, Mathias Gaunard
> 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: