October 28, 2020 [Issue 21346] New: core.stdcpp.vector.vector does not implement opEquals | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21346 Issue ID: 21346 Summary: core.stdcpp.vector.vector does not implement opEquals Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: n8sh.secondary@hotmail.com Someone familiar with C++ would expect == between vectors to be an elementwise comparison. Code: --- void main() { import core.stdcpp.vector : vector; // Currently only supported on 64-bit Windows. vector!int a = [1, 2, 3]; vector!int b = a; assert(a == b); // Fails. } --- -- |
Copyright © 1999-2021 by the D Language Foundation