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

QAnyStringView missing implicit conversion from char[] with unknown size

    XMLWordPrintable

Details

    • 8
    • fd6ecd856 (dev), d4c9dbf54 (tqtc/lts-6.2), 29b32d628 (6.5), bcc9b4dad (dev), a4622aead (6.9), 01f0305dc (dev), 0c054f684 (6.9), 24ff7e683 (6.8), 67990c16a (dev), 56faffd92 (dev), 734bd05d0 (dev), 2dfc0cb6f (6.9), 31e301229 (6.9), 1e58035c3 (tqtc/lts-6.5)
    • Foundations Sprint 80, Foundation Sprint 81, Foundation Sprint 82, Foundation Sprint 83, Foundation Sprint 84, Foundation Sprint 85, Foundation Sprint 86, Foundation Sprint 87, Foundation Sprint 88, Foundation Sprint 121, Foundation Sprint 122

    Description

      QAnyStringView has no implicit conversion (constructor) for char[] where the length of the array is not known at compile-time.

      This causes code that compiles with QString overloads to no longer compile with QAnyStringView/QUtf8StringView overloads (see attached code for an example where the port to QAnyStringView in Qt 6.5 caused Qt 6.4 code to fail to compile).

      Attachments

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

        Activity

          People

            mmutz Marc Mutz
            ev E Visser
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes