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: nob...@puremagic.com
          Reporter: n8sh.second...@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);
}
```

--

Reply via email to