Skip to content

Commit

Permalink
Merge pull request #4253 from 9rnsr/fix15963
Browse files Browse the repository at this point in the history
Issue 15963 - Hidden unresolved forward reference issue in std.uni
  • Loading branch information
DmitryOlshansky committed Apr 28, 2016
2 parents fda8267 + 59b8791 commit 2175917
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions std/uni.d
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,6 @@ private:

static assert(isRandomAccessRange!(SliceOverIndexed!(int[])));

// BUG? forward reference to return type of sliceOverIndexed!Grapheme
SliceOverIndexed!(const(T)) sliceOverIndexed(T)(size_t a, size_t b, const(T)* x)
if (is(Unqual!T == T))
{
Expand Down Expand Up @@ -6660,13 +6659,13 @@ public:
Warning: Invalidates when this Grapheme leaves the scope,
attempts to use it then would lead to memory corruption.
+/
@system auto opSlice(size_t a, size_t b) pure nothrow @nogc
@system SliceOverIndexed!Grapheme opSlice(size_t a, size_t b) pure nothrow @nogc
{
return sliceOverIndexed(a, b, &this);
}

/// ditto
@system auto opSlice() pure nothrow @nogc
@system SliceOverIndexed!Grapheme opSlice() pure nothrow @nogc
{
return sliceOverIndexed(0, length, &this);
}
Expand Down

0 comments on commit 2175917

Please sign in to comment.