Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113234

Modernize comparisons [Core: QVariant]

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • None
    • Core: Object Model
    • None

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ivan.solovev Ivan Solovev
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes