Struct template

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 4 00:56:25 PST 2014


On Monday, 3 November 2014 at 17:05:21 UTC, John Colvin wrote:
> static if (is(typeof(T) == int))
>
> should be
>
> static if (is(T == int))
>
>
> T is already a type.

I thought this was supposed to produce an error message rather 
than fail silently... I'm positive this used to be an error. Did 
it change?


More information about the Digitalmars-d-learn mailing list