On 06/24/2014 11:23 PM, Yuushi wrote:

> Yeah, I realised that when I went back and looked at what I'd tried:
>
>       function string(string) transform;

That gets me all the time! :-/ That is the long version of the function literal syntax:

    auto f = function string(string s) { return "hello"; };

>
> which should have been:
>
>      string function(string) transform;
>
> which does work.
>
> Thanks for the clarification.

Ali

Reply via email to