Variadic constructor conflict

2013-01-30 Thread andrea9940
This code compiles fine: struct Vector(T, uint SIZE) { T[SIZE] vector; this(T value) { foreach (ref v; vector) v = value; } } alias Vector!(int, 3) Vec3i; but if I add a variadic constructor: struct Vector(T, uint

Re: Variadic constructor conflict

2013-01-30 Thread Simen Kjaeraas
On 2013-01-30, 17:08, andrea9940 wrote: This code compiles fine: struct Vector(T, uint SIZE) { T[SIZE] vector; this(T value) { foreach (ref v; vector) v = value; } } alias Vector!(int, 3) Vec3i; but if I add a variadic

Re: Variadic constructor conflict

2013-01-30 Thread andrea9940
Aw