Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
8
-
285a2a75b (dev)
-
Foundation Sprint 103
Description
See epic for the big picture and (the latest version of) QTBUG-104113 for a detailed description of the necessary changes.
QVariant is special in that we used to have op< et al, but, since variants of different type may not be comparable, or contained types may not be ordered, we removed it again. C++20 std::partial_order would allow to bring this back, and report QVariant(QRect()) <=> QVariant("hello") as unordered.
Discuss and implement.
Attachments
Issue Links
- depends on
-
QTBUG-104113 Modernize comparisons: can we provide macros?
- Closed
-
QTBUG-104114 Check <=> in QCOMPARE_op
- Closed
-
QTBUG-104110 Support easy, yet precise, documenting of relational operators
- Closed
-
QTBUG-104108 As a user of QTestLib, I want to use QCOMPARE_op with C++20's spaceship operator <=>
- In Review
- is required for
-
QTBUG-120304 Modernize comparisons [Core: <rest>]
- Closed