CTFE UFCs?

bitwise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 15 08:33:21 PDT 2015


On Tue, 14 Apr 2015 12:46:40 -0400, ketmar <ketmar at ketmar.no-ip.org> wrote:

> On Tue, 14 Apr 2015 11:20:38 -0400, bitwise wrote:
>
> i believe that you can't do what you want in a way you want, 'cause UFCS
> is not working for template args. but you can do this:
>
> alias base(alias CC) = reflect!(CC.baseName());
> ...
> static const(Refl) baseRefl = base!refl;

Yeah.. but at this point you may as well you std.traits.BaseClassesTuple.


More information about the Digitalmars-d-learn mailing list