One question about templates

bearophile bearophileHUGS at lycos.com
Wed Aug 4 19:26:22 PDT 2010


I have found one bad looking solution :-)

template IsFoo(alias S) {
    enum bool IsFoo = __traits(compiles, { void isf(T...)(Foo!T){} isf(S.init); });
}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list