Details
-
Epic
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
None
-
C++20 int compare @ Qt
Description
C++20 added integer comparison functions to the <utility> header (https://en.cppreference.com/w/cpp/utility#Integer_comparison_functions). While these don't have impact on our APIs, we may want to reimplement them under the q20 mechanism and start using them instead of the traditional ==/!=/</>/<=/>= for mixed-integer types, because developers all too often get these wrong.
We might need to do something for qfloat16 and the q_le types.
Attachments
Issue Links
- is required for
-
QTBUG-99243 Initiative: Qt and C++20
-
- Open
-
-
QTBUG-109360 Use C++20 code with Qt (Phase I)
-
- Open
-
- relates to
-
QTBUG-100881 qAddOverflow et al are susceptible to misuse (explicit template arguments), leading to False Negatives
-
- Open
-