Conditional Inheritance

lomereiter lomereiter at gmail.com
Sat Jul 13 22:28:03 PDT 2013


This should work:

template conditionallyInherit(bool inherit, T) {
     static if (inherit)
         alias T conditionallyInherit;
     else
         interface conditionallyInherit {}
}


More information about the Digitalmars-d-learn mailing list