Eponymous template with static if

sighoya sighoya at gmail.com
Tue Aug 15 21:34:52 UTC 2023


On Tuesday, 15 August 2023 at 21:24:34 UTC, sighoya wrote:
> On Tuesday, 15 August 2023 at 10:54:52 UTC, H. S. Teoh wrote:
>>
>> `is(T)` is standard idiom for checking whether T is a valid 
>> type.
>
> Thanks.
>
> Though, is there any case where it wouldn't be a valid type?

As template parameter types seem to be distinguishable by syntax 
in my eyes:
https://dlang.org/spec/template.html#parameters


More information about the Digitalmars-d mailing list