Cannot use UFCS in lambda?
Paul Backus
snarwin at gmail.com
Sun Sep 16 16:32:26 UTC 2018
On Sunday, 16 September 2018 at 10:55:43 UTC, berni wrote:
>> The problem is more general: you can only use top-level
>> symbols in UFCS.
>>
>> You can use an identity alias template to bypass this:
>> https://blog.thecybershadow.net/2015/04/28/the-amazing-template-that-does-nothing/
>> (search for UFCS in the page).
>
> Good to know. :-)
Worth noting, this is now included in Phobos as `std.meta.Alias`.
More information about the Digitalmars-d-learn
mailing list