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

Provide an opt-out define for std::format support

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • 6.9.0 FF
    • 6.9
    • Core: Other
    • None

    Description

      As discussed on QtCS, the users should not need to include additional headers to enable std::format support for a certain Qt type.

      The conclusion is that we add all the relevant code directly in the class header, but guard it with an opt-out define, which allows to disable std::format support for those who are not interested in it.

      Note that it should be a #define, not a QT_FEATURE, because the user's configuration might be different from what was used to build Qt itself.

      Attachments

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

        Activity

          People

            ivan.solovev Ivan Solovev
            ivan.solovev Ivan Solovev
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes