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

<< (QUtf8StringView) broke QDebug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 6.0.0 Beta4
    • None
    • Clang 11
    • Linux/X11
    • bf820bd3e2eb9d7670fa5b5b6e9bc00c5b38d1ba

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

      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
            jeremykim232323 Jeremy Kim
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes