Setting defaults to variadic template args

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Oct 2 08:56:12 PDT 2012


On 10/2/12, Manu <turkeyman at gmail.com> wrote:
> Actually, this leaves a problem...
> Distinction between:
>   Event x; // using defaults
> and
>   Event!() x; // explicitly selecting none (which would fall back to the
> defaults)
>
> Is such a distinction possible? I presume not...
>

Well actually you can't use the first syntax at all with templates or
templated types. :/


More information about the Digitalmars-d mailing list