Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
6.6.0 Beta4
-
None
Description
It turns out the one-arg-to-two-arg adapter strikes again, and causes pointers-to-mutable to hash differently from pointers-to-const.
There does not appear to be anything we can do about this until Qt 7, as we'd need to either change T* or const T* hashing. Both functions being inline, that means this change would be BiC, whatever we do.
The fix is otherwise simple: remove the adapter (and move from qHash function templates to qHash class templates, like the std does with std::hash).
TODO: check whether recent changes to the adapter function template may have caused this in the first place.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-116986 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
503344,3 | tst_QHashFunctions: extend the consistent() test with pointer types | dev | qt/qtbase | Status: NEW | +1 | 0 |