typeof alias in templates

bearophile bearophileHUGS at lycos.com
Tue Jul 22 09:30:50 PDT 2008


Don:
> A bug. Workaround:
> template Foo(alias A) {
>      alias Bar!(A.stringof ~ "") Foo;
> }

Thank you, this workaround is very short and usable, it avoids me to use another template :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list