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

Modernize comparisons: can we provide macros?

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Core: Other
    • None

    Description

      See epic for more information.

      We're asking all maintainers to execute the following programme:

      For each pair of types that are comparable:

      • add a private compare as a back-end for <=> that can be out-of-line (cf. QTBUG-100276)
      • a classification (incl. user docs! (QTBUG-104110)) into exactly one of
        • strong
        • partial
        • weak
      • add tests for all relational operators (QTBUG-104108)
      • all traditional relational operators (==, !=, <, >, <=, >=) that work in C++20 (incl. synthesized ones) should also work in C++17.

      Explore how much of this we can hide behind macros, and define such macros.

      Attachments

        Issue Links

          Activity

            People

              cnn Qt Core & Network
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: