How to test templates for equality?

Uranuz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 30 22:44:51 PDT 2014


I suddenly posted it for somehow. But I hope idea is clear. How 
could I test if symbol is equal to some concrete template. I 
tried these examples:

template isFoo(alias F)
{
     enum bool isFoo = is( F == Foo );
}

template isFoo(alias F)
{
     enum bool isFoo = F == Foo;
}

Could you advise something to solve this?


More information about the Digitalmars-d-learn mailing list