Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8
-
None
-
-
798c23189 (dev), aefa42745 (6.8)
-
Foundation Sprint 110
Description
The new QMap::qHash introduced in Qt 6.8 causes compilation errors because it is ambiguous:
QMap<int,int> map;
size_t seed = 0;
qHash(map, seed);
Compiler error:
Call to 'qHash' is ambiguous qhashfunctions.h:235:8: candidate function [with T = QMap<int, int>, $1 = true] qmap.h:796:5: candidate function [with M = QMap<int, int>, $1 = true]
Attachments
For Gerrit Dashboard: QTBUG-126659 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
571280,2 | tst_QHashFunctions: check qHash(QMap) isn't ambiguous | dev | qt/qtbase | Status: ABANDONED | +2 | 0 |
571285,5 | qHash(): make 1-to-2-arg adapter a worse match than regular 2-arg overloads | dev | qt/qtbase | Status: MERGED | +2 | 0 |
571792,2 | qHash(): make 1-to-2-arg adapter a worse match than regular 2-arg overloads | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |