Template Usage with Eponymous Trick

Paul Backus snarwin at gmail.com
Sun Feb 2 16:23:42 UTC 2020


On Sunday, 2 February 2020 at 13:01:26 UTC, ShadoLight wrote:
> Not bad and definitely an improvement , but I still find the 
> inconsistency jarring... IIUC this 'ambiguity' would have been 
> avoidable if template argument braces were not optional, right?

No, it would still be ambiguous:

struct S(T) {}

alias a = S!(int);

// Should this assertion pass or fail?
static assert(is(a));



More information about the Digitalmars-d-learn mailing list