Stop TypeTuple as template parameter from expanding

Timon Gehr timon.gehr at gmx.ch
Fri Nov 4 09:55:11 PDT 2011


On 11/04/2011 05:28 PM, Justin Whear wrote:
> I just use a templated struct.
>
> struct GroupedTypes(T...)
> {
>      alias T Types;
> }
>
> Then, if you need to something special with groups, you can create an
> override:
>
> //overriding previous Test template...
> template Test(T: GroupedTypes!(S), S...)
> {
>
> }
>


You don't need a struct.

template GroupedTypes(T){
     alias T Types;
}


More information about the Digitalmars-d-learn mailing list