Setting defaults to variadic template args

Timon Gehr timon.gehr at gmx.ch
Tue Oct 2 12:24:37 PDT 2012


On 10/02/2012 03:15 PM, Manu wrote:
>    struct Event(T... = (int, float))
>    {
>      void F(T...); // <- should default to F(int, float)
>    }

template Event(){alias Event!(int,float) Event;}
struct Event(T...){
     void F(T...);
}



More information about the Digitalmars-d mailing list