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

QStringRef doesn't convert to QAnyStringView

    XMLWordPrintable

Details

    • 3
    • Foundations Sprint 102, Foundation Sprint 103, Foundation Sprint 104, Foundation Sprint 105, Foundation Sprint 106, Foundation Sprint 107, Foundation Sprint 108, Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113, Foundation Sprint 114, Foundation Sprint 115, Foundation Sprint 116, Foundation Sprint 117, Foundation Sprint 118, Foundation Sprint 119, Foundation Sprint 120, Foundation Sprint 121

    Description

      This fails when added to dev qt5compat:

      static_assert(std::is_convertible_v<QStringRef, QAnyStringView>);
      

      Expectation is that because QStringRef has a data() and a size() that it should match the generic range ctor of QAnyStringView. Apparently, it doesn't.

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes