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

(QUtf8StringView) break QDebug compilation with C++20

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.0.0 Beta4
    • None
    • Clang 11, MSVC
    • Linux/X11, Windows

      Can't get any builds that use qdebug.h to work in 6.0.0 Beta4 with c++20:

      In file included from /usr/include/qt6/QtCore/QCoreApplication:1:
      In file included from /usr/include/qt6/QtCore/qcoreapplication.h:53:
      /usr/include/qt6/QtCore/qdebug.h:147:65: error: cannot initialize a parameter of type 'const char *' with an rvalue of type 'QBasicUtf8StringView<true>::const_pointer' (aka 'const char8_t *')
      inline QDebug &operator<<(QUtf8StringView s) { putByteArray(s.data(), s.size(), ContainsBinary); return maybeSpace(); }
      ^~~~~~~~
      /usr/include/qt6/QtCore/qdebug.h:97:35: note: passing argument to parameter 'begin' here
      void putByteArray(const char *begin, size_t length, Latin1Content content);
      ^
      1 error generated.

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

            thiago Thiago Macieira
            eunice Eunice Thomas
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes