template with enum parameter doesn't compile

Sjoerd Nijboer dlang at sjoerdnijboer.com
Fri Apr 5 15:01:12 UTC 2019


On Friday, 5 April 2019 at 14:52:05 UTC, lithium iodate wrote:
> You are just having a little issue with operator precedence 
> there. Your code attempts to get the member `A` from 
> `MyClass!MyEnum`, if you add braces around it, it'll work just 
> fine `MyClass!(MyEnum.A)`.


That's really funny acutally.
It works. Thank you!



More information about the Digitalmars-d-learn mailing list