__traits with alias

sigod via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 8 21:18:27 PDT 2014


On Thursday, 8 May 2014 at 07:33:34 UTC, Philippe Sigaud via 
Digitalmars-d-learn wrote:
> A workaround is to wrap it into another template, to 'hide' 
> __traits.
>
> Like this:
>
> alias Alias(alias a) = a; // A bit circular, I know.
Oh, thank you.

> I think there is bug report / enhancement for this. I find it a 
> bit
> annoying, since aliasing a __traits expression is quite common.
This one https://issues.dlang.org/show_bug.cgi?id=7804, I believe.


More information about the Digitalmars-d-learn mailing list