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

Regression: QByteArray/string/string_view comparison broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.10
    • None
    • 996d744f2 (dev)

    Description

      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

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-134902
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are 2 open Gerrit changes