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
- is duplicated by
-
QTBUG-114376 operator+ API asymmetries with QStringBuilder
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-109081 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
446230,1 | wip: tst_qstringbuilder: Test with QStringBuilder disabled | dev | qt/qtbase | Status: NEW | -2 | 0 |
485138,6 | QString: add operator+(QString, QStringView) overloads | dev | qt/qtbase | Status: NEW | 0 | 0 |
485991,3 | QByteArray: add operator+(QByteArray, QByteArrayView) | dev | qt/qtbase | Status: NEW | 0 | 0 |