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