Variadic parameter of length 1

Dominikus Dittes Scherkl via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 20 08:47:10 PDT 2014


On Wednesday, 20 August 2014 at 15:37:18 UTC, Philippe Sigaud via 
Digitalmars-d-learn wrote:
> No better solution that I know of.
>
> alias template parameters (alias a) match symbols (names, 
> user-defined
> types) whereas type parameter (T) match only pure types.
>
> So when we need to match anything, we use (T...) if (T.length 
> == 1)

Ok, now it's clear. Thank you very much.

Sometimes D is really a little weird...


More information about the Digitalmars-d-learn mailing list