Bug 21346 – core.stdcpp.vector.vector does not implement opEquals
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2020-10-28T07:24:00Z
Last change time
2020-11-13T02:54:08Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2020-10-28T07:24:00Z
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.
}
---
Comment #1 by dlang-bot — 2020-10-28T07:56:13Z
@n8sh created dlang/druntime pull request #3255 "Fix - core.stdcpp.vector.vector does not implement opEquals" fixing this issue:
- Fix Issue 21346 - core.stdcpp.vector.vector does not implement opEquals
https://github.com/dlang/druntime/pull/3255
Comment #2 by dlang-bot — 2020-10-31T01:29:05Z
dlang/druntime pull request #3255 "Fix - core.stdcpp.vector.vector does not implement opEquals" was merged into stable:
- b65703e477344e5702f5eaa3897a4a99cb1700be by Nathan Sashihara:
Fix Issue 21346 - core.stdcpp.vector.vector does not implement opEquals
https://github.com/dlang/druntime/pull/3255
Comment #3 by dlang-bot — 2020-11-13T02:54:08Z
dlang/druntime pull request #3269 "merge stable" was merged into master:
- 5c31195233480ed1c8a00ea4aaa1c50d042d4b49 by Nathan Sashihara:
Fix Issue 21346 - core.stdcpp.vector.vector does not implement opEquals
https://github.com/dlang/druntime/pull/3269