[Issue 16642] byCodeUnit doesn't work AutodecodableStrings unless they're actually strings or alias a variable that's a string
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Mar 10 13:02:59 PST 2017
https://issues.dlang.org/show_bug.cgi?id=16642
--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/6e3d41cfe92d0af0360002db6436d2ec98f503af
Fix issue 16642: byCodeUnit doesn't work properly with alias this.
If a template is going to allow implicit conversions, it really needs to
force the conversion in order to avoid subtle bugs. This fixes
byCodeUnit so that it forces the conversion to a string type for types
that convert implicitly. It also fixes it so that types which implicitly
convert to a string type but are also ranges of characters without the
conversion will not be converted by byCodeUnit.
https://github.com/dlang/phobos/commit/13b3da64a81360e96bab3d1bb09a3a42b751da36
Merge pull request #4879 from jmdavis/issue_16642
Fix Issue 16642 - byCodeUnit doesn't work properly with alias this.
--
More information about the Digitalmars-d-bugs
mailing list