Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P0: Blocker
-
Resolution: Done
-
Affects Version/s: 5.6.2, 5.8.0, 5.10
-
Component/s: Core: Containers and Algorithms
-
Labels:None
-
Commits:dbd55cdaf367bdc9d6774bcb9927cbe19f18065f 4084f96052ea1568c847f8cfb52b6ae6d205ec4d
Description
This code
#include <QtCore> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QHash<int, int> h1, h2; h1.insertMulti(0, 0); h1.insertMulti(0, 1); h2.insertMulti(0, 1); h2.insertMulti(0, 0); Q_ASSERT(h1 == h2); }
asserts. Same with QMap and the Multi variants. A quick peek at the operator== shows that they're completely wrong for the multikey case.
Attachments
Issue Links
- relates to
-
QTBUG-60399 QMap::insertMulti / QMultiMap does not honour stability of insertion
-
- Reported
-