Setting defaults to variadic template args

Manu turkeyman at gmail.com
Tue Oct 2 09:02:50 PDT 2012


On 2 October 2012 18:56, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:

> 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. :/
>

Errr, really? If the template has default args, surely you don't need to
specify any template args?
I'm sure I've done that before... :/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121002/5d56e67d/attachment.html>


More information about the Digitalmars-d mailing list