[Issue 21346] New: core.stdcpp.vector.vector does not implement opEquals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 28 07:24:00 UTC 2020
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 at puremagic.com
Reporter: n8sh.secondary at 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.
}
---
--
More information about the Digitalmars-d-bugs
mailing list