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

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

XMLWordPrintable

    • C++20 std::format @ Qt

      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?

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

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

              Created:
              Updated:

                There are no open Gerrit changes