[Issue 18288] New: std.algorithm.comparison.cmp for wide strings should be @safe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 23 17:58:40 UTC 2018
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 at puremagic.com
Reporter: n8sh.secondary at 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);
}
```
--
More information about the Digitalmars-d-bugs
mailing list