D's limited template specialization abilities compared to C++

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun May 26 06:04:24 PDT 2013


On 5/26/13, Kenji Hara <k.hara.pg at gmail.com> wrote:
> Hmm. Currently D can specify specType for alias template parameter.
>
> struct X(alias int x) {}   // matches only when the symbol x has the type int

This feature is news to me! Pretty cool.

@Philippe Sigaud: Is this mentioned in the D Template book?


More information about the Digitalmars-d mailing list