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

Impact of C++20 std::format on our code

    XMLWordPrintable

Details

    • C++20 std::format @ Qt

    Description

      C++20 added a new formatting library, roughly modelled after Python's. It supports user-defined types, user-defined formatting options, char and wchar_t, argument reordering, localization, and is based on format strings.

      This library impacts Qt APIs on two levels:

      1. enable Qt types for use with std::format
      2. replace our existing formatting (QString::arg(), QTest::toString(), QDebug stream operators) with std::format
        • it seems to have everything we need for localisation
        • except char16_t support
          • but maybe there's a way to extend the library with char16_t support?

      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: