Specialize mixin templates

Henning Pohl henning at still-hidden.de
Sat Aug 11 14:42:59 PDT 2012


A struct takes a mixin template as argument:

struct S(alias Mixin) {
     mixin Mixin;
}


How to specialize a mixin template like this one to pass to S?

mixin template MixinTemplate(T) {
}


S(MixinTemplate!float); // Something like this


More information about the Digitalmars-d-learn mailing list