alias type reduction

anonymous anonymous at example.com
Thu Dec 13 02:03:33 PST 2012


On Thursday, 13 December 2012 at 09:29:46 UTC, js.mdnq wrote:
> class _A(T, _NestLevel) { }
> alias _A!(T, true) A!(T) // <- does not work but essentially 
> what I want

template A(T) {
   alias _A!(T, true) A;
}

> (or even better)
>
> class A(T, _NestLevel) { }
> alias A!(T, true) A!(T)

class A(T, bool _NestLevel = true) {}


More information about the Digitalmars-d-learn mailing list