October 27, 2020 [Issue 21344] New: core.stdcpp.string.basic_string does not implement opEquals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21344 Issue ID: 21344 Summary: core.stdcpp.string.basic_string does not implement opEquals Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: n8sh.secondary@hotmail.com Example code: --- void main() { import core.stdcpp.string : basic_string; char[64] buffer = 'a'; // Make this long enough that short string optimization is not applied. auto s1 = basic_string!char(buffer[]); auto s2 = basic_string!char(buffer[]); assert(s1 == s2); // This assertion fails. } --- -- |
Copyright © 1999-2021 by the D Language Foundation