digitalmars.D.bugs - [Issue 18288] New: std.algorithm.comparison.cmp for wide strings
- d-bugmail puremagic.com (24/24) Jan 23 2018 https://issues.dlang.org/show_bug.cgi?id=18288
https://issues.dlang.org/show_bug.cgi?id=18288 Issue ID: 18288 Summary: std.algorithm.comparison.cmp for wide strings should be safe Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: minor Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: n8sh.secondary hotmail.com Sample code that does not currently compile: https://run.dlang.io/is/EG6kdu ``` void main() safe { import std.algorithm.comparison : cmp; assert(cmp("aaa"d, "aaa"d) == 0); } ``` --
Jan 23 2018