make cycle opDollar manifest constant

This commit is contained in:
monarchdodra 2013-07-08 19:58:47 +02:00
parent 201edf4c80
commit 0ac90b1770
2 changed files with 3 additions and 7 deletions

View file

@ -468,9 +468,9 @@ private struct MapResult(alias fun, Range)
static if (!isInfinite!R && hasSlicing!R)
{
static if (is(typeof(_input[ulong.max .. ulong.max])))
private alias ulong opSlice_t;
private alias opSlice_t = ulong;
else
private alias uint opSlice_t;
private alias opSlice_t = uint;
auto opSlice(opSlice_t lowerBound, opSlice_t upperBound)
{

View file

@ -3821,11 +3821,7 @@ struct Cycle(Range)
}
private static struct DollarToken {}
DollarToken opDollar()
{
return DollarToken.init;
}
enum opDollar = DollarToken.init;
auto opSlice(size_t i, size_t j)
{