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

    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