Skip to content

Commit

Permalink
Merge pull request #5081 from dlang/JackStouffer-patch-2
Browse files Browse the repository at this point in the history
Fix Issue 17154 – Add opDollar to std.conv.toChars
  • Loading branch information
WalterBright committed Feb 10, 2017
2 parents 86a678d + d5ae07f commit d8ca218
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions std/conv.d
Expand Up @@ -5894,6 +5894,8 @@ auto toChars(ubyte radix = 10, Char = char, LetterCase letterCase = LetterCase.l

@property size_t length() { return upr - lwr; }

alias opDollar = length;

@property bool empty() { return upr == lwr; }

@property Char front() { return buf[lwr]; }
Expand Down

0 comments on commit d8ca218

Please sign in to comment.