Skip to content

Commit

Permalink
Merge pull request #3081 from MartinNowak/fix14301
Browse files Browse the repository at this point in the history
fix Issue 14301 - private symbol Cache conflicts with client code
  • Loading branch information
WalterBright committed Mar 20, 2015
2 parents 602dff5 + de7100e commit c856128
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions std/algorithm/iteration.d
Expand Up @@ -135,14 +135,14 @@ trait also checks for random access).
auto cache(Range)(Range range)
if (isInputRange!Range)
{
return Cache!(Range, false)(range);
return _Cache!(Range, false)(range);
}

/// ditto
auto cacheBidirectional(Range)(Range range)
if (isBidirectionalRange!Range)
{
return Cache!(Range, true)(range);
return _Cache!(Range, true)(range);
}

///
Expand Down Expand Up @@ -287,7 +287,7 @@ same cost or side effects.
assert(r.source.initialized == true);
}

private struct Cache(R, bool bidir)
private struct _Cache(R, bool bidir)
{
import core.exception : RangeError;

Expand Down Expand Up @@ -4186,4 +4186,3 @@ private struct UniqResult(alias pred, Range)
}
}
}

0 comments on commit c856128

Please sign in to comment.