mirror of
https://github.com/dlang/phobos.git
synced 2025-05-14 00:46:22 +03:00
make cycle opDollar manifest constant
This commit is contained in:
parent
201edf4c80
commit
0ac90b1770
2 changed files with 3 additions and 7 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue