D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21346 - core.stdcpp.vector.vector does not implement opEquals
Summary: core.stdcpp.vector.vector does not implement opEquals
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: x86_64 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-10-28 07:24 UTC by Nathan S.
Modified: 2020-11-13 02:54 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nathan S. 2020-10-28 07:24:00 UTC
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 Dlang Bot 2020-10-28 07:56:13 UTC
@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 Dlang Bot 2020-10-31 01:29:05 UTC
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 Dlang Bot 2020-11-13 02:54:08 UTC
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