Remove bug from staticIota in typecons

step is not used -> if passed anything other than 1 as step, staticIota
will behave incorrectly.
This commit is contained in:
Tero Hänninen 2013-12-06 17:13:24 +02:00
parent 4d3a2c49c8
commit a63dc3e356

View file

@ -3406,7 +3406,7 @@ unittest
static assert(is(DerivedFunctionType!(F17, F18) == void));
}
private template staticIota(int beg, int end, int step = 1) if (step != 0)
private template staticIota(int beg, int end)
{
static if (beg + 1 >= end)
{