Template Tuple Defaults

Peter Neubauer peterneubauer2 at gmail.com
Sat Mar 29 21:06:00 PDT 2008


Is there a way to give default types to template tuple parameters?
Like this:


class Test (TTuple ... = [char, int] )
{
	// ...
}

void main ()
{
	Test t; // Equivalent to Test !(char, int) t;
}


Obviously, that does not compile.

Thanks in advance,
-Peter


More information about the Digitalmars-d-learn mailing list