February 12 [Issue 24391] New: std.encoding.sanitize should be usable in @safe | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24391 Issue ID: 24391 Summary: std.encoding.sanitize should be usable in @safe Product: D Version: D2 Hardware: x86 OS: All Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody@puremagic.com Reporter: forestix@nom.one The offending line: > return cast(immutable(E)[])array[0 .. offset]; ldc2 says: Error: cast from `char[]` to `string` not allowed in safe code -- |
Copyright © 1999-2021 by the D Language Foundation