Skip to content

Commit

Permalink
Merge pull request #4566 from aG0aep6G/16238
Browse files Browse the repository at this point in the history
fix issue 16238 - std.string.lastIndexOf fails compilation with -de
  • Loading branch information
schveiguy committed Jul 5, 2016
2 parents 453b242 + d9a2d28 commit e41b83f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/string.d
Expand Up @@ -1175,6 +1175,7 @@ ptrdiff_t lastIndexOf(Char1, Char2)(const(Char1)[] s, const(Char2)[] sub,
import std.algorithm.searching : endsWith;
import std.conv : to;
import std.range.primitives : walkLength;
static import std.uni;
import std.utf : strideBack;
if (sub.empty)
return -1;
Expand Down

0 comments on commit e41b83f

Please sign in to comment.