Permalink
Browse files

Merge pull request #1028 from 9rnsr/fix6905

Additional fix for issue 6905
  • Loading branch information...
jmdavis committed Dec 24, 2012
2 parents c15cc7b + 2bbb33d commit 03a6e295fadd7c563a60069be0be3ada1c234666
Showing with 3 additions and 3 deletions.
  1. +3 −3 std/range.d
View
@@ -3758,7 +3758,7 @@ struct Cycle(Range)
static if (is(typeof((cast(const R)_original)[0])) &&
is(typeof((cast(const R)_original).length)))
{
- @property auto const ref front() const
+ @property auto ref front() const
{
return _original[_index % _original.length];
}
@@ -3784,7 +3784,7 @@ struct Cycle(Range)
static if (is(typeof((cast(const R)_original)[0])) &&
is(typeof((cast(const R)_original).length)))
{
- const ref opIndex(size_t n) const
+ auto ref opIndex(size_t n) const
{
return _original[(n + _index) % _original.length];
}
@@ -3813,7 +3813,7 @@ struct Cycle(Range)
@property auto ref front() { return _current.front; }
static if (is(typeof((cast(const R)_current).front)))
- @property auto const ref front() const
+ @property auto ref front() const
{
return _current.front;
}

0 comments on commit 03a6e29

Please sign in to comment.