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

Add the possibility to pass QAnyStringView and QUtf8StringView to QStringBuilder operator%

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • None

    Description

      I think it would be useful to able to use QAnyStringView and QUtf8StringView while concatenating strings with operator%. The following code doesn't compile:

      void processStrings(QAnyStringView str1, QUtf8StringView str2)
      {
           QString str = str1 % str2;
      }

      Or is there any fundamental reason for this not being available yet?

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            eric_carvalho Eric Carvalho
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes