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

Not all string concatenation operations are possible when QStringBuilder is disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4, 6.5
    • None

    Description

      Trying to build the QStringBuilder test source without enabling QStringBuilder errors out on certain '+'-operations.

      stringbuilder.cpp(132): note: while trying to match the argument list '(qt::QStringView, qt::QString)'
      stringbuilder.cpp(132): note: while trying to match the argument list '(qt::QString, qt::QStringView)'
      stringbuilder.cpp(137): note: while trying to match the argument list '(qt::QLatin1Char, qt::QLatin1Char)'
      stringbuilder.cpp(139): note: while trying to match the argument list '(qt::QLatin1Char, qt::QChar::SpecialCharacter)'
      stringbuilder.cpp(139): note: while trying to match the argument list '(qt::QChar::SpecialCharacter, qt::QLatin1Char)'
      stringbuilder.cpp(145): note: while trying to match the argument list '(qt::QChar, qt::QChar)'
      stringbuilder.cpp(214): note: while trying to match the argument list '(qt::QLatin1Char, qt::QStringView)'
      stringbuilder.cpp(315): note: while trying to match the argument list '(qt::QByteArrayView, qt::QByteArrayView)'
      

      QBAV+QBAV is a view+view operation, which doesn't necessarily make sense for general support, but as long as it's a supported argument of the QStringBuilder templates it will work when it's enabled.

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              manordheim MÃ¥rten Nordheim
              Vladimir Minenko Vladimir Minenko
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: