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

Regression: QByteArray/string/string_view comparison broken

XMLWordPrintable

    • 996d744f2 (dev), 07b890936 (dev), d144d5dd0 (dev)

      https://codereview.qt-project.org/c/qt/qtbase/+/627093 introduced a regression when comparing std::string_view with QByteArray.

      this code used to work before:

      void tst_QByteArray::std_string_stringview_comparison()
      {
          QByteArray ba("yada");
          std::string_view sv("yada");
          std::string s("yada");
          QCOMPARE(ba, sv);
          QCOMPARE(ba, s);
      }
      

      now it is broken, which caused a compile failure in qtmultimedia

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

            peppe Giuseppe D'Angelo
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change