Templated class defaults and inheritence

Rene Zwanenburg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 19 08:15:49 PDT 2016


On Saturday, 18 June 2016 at 17:48:47 UTC, Joerg Joergonson wrote:
> class foo(T) if (is(T : subfoo)) X;

FYI this can also be done in the template parameter list:

class foo(T : subfoo){}


More information about the Digitalmars-d-learn mailing list