Bug 18288 – std.algorithm.comparison.cmp for wide strings should be @safe

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-23T17:58:40Z
Last change time
2018-01-26T21:23:42Z
Assigned to
No Owner
Creator
Nathan S.

Comments

Comment #0 by n8sh.secondary — 2018-01-23T17:58:40Z
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); } ```
Comment #1 by n8sh.secondary — 2018-01-26T21:23:42Z