How do I check if this field is of this template struct?

Jack jckj33 at gmail.com
Sat Mar 20 05:53:15 UTC 2021


On Friday, 19 March 2021 at 17:40:39 UTC, frame wrote:
> On Friday, 19 March 2021 at 16:41:11 UTC, Jack wrote:
>
>> thanks this works fine outside a method but not in a static 
>> method. what am I missing?
>
> Reading the manual ;)
>
>> To use isInstanceOf to check the identity of a template while 
>> inside of said template, use TemplateOf.

indeed, it shwos an example on how to use that in a static 
function


More information about the Digitalmars-d-learn mailing list