Bug 18116 – to!wchar([string, dstring]), and to!char([wstring, dstring]) don't compile

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2017-12-23T16:35:19Z
Last change time
2017-12-29T16:05:41Z
Assigned to
dechcaudron+dlang.issue.tracking
Creator
dechcaudron+dlang.issue.tracking

Comments

Comment #0 by dechcaudron+dlang.issue.tracking — 2017-12-23T16:35:19Z
The following should all work: assert(toImpl!wchar("a") == 'a'); assert(toImpl!char("a"d) == 'a'); assert(toImpl!char("a"w) == 'a'); assert(toImpl!wchar("a"d) == 'a'); I've already coded a solution. Will provide PR.
Comment #1 by github-bugzilla — 2017-12-29T16:05:40Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/9968b61d07fe996cc0ee8175f1eb7a9fe0c1a278 Fixes issue 18116 https://github.com/dlang/phobos/commit/b8dab428d1a4ead662775253056ab4849622de10 Merge pull request #5959 from Dechcaudron/issue_18116 Fixes Issue 18116 - to!wchar([string, dstring]), and to!char([wstring, dstring]) don't compile merged-on-behalf-of: Steven Schveighoffer <[email protected]>