Details
-
User Story
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
2
-
Team B Foundation Sprint 53
-
f3c340c276 (qt/qtbase/dev) f3c340c276 (qt/tqtc-qtbase/dev)
Description
In technical terms: toContainer() is over-constrained. Instead of is_same, it should only require is_convertible.
Example that should, but doesn't, work:
QLatin1String input = ~~~; auto list = qTokenize(input, u'\n', Qt::SkipEmptyParts).toContainer<QStringList>(); // ERROR: QStringList::value_type (QString) is not the same as QStringTokenizer<QLatin1String, QChar>::value_type (QLatin1String)).
Attachments
For Gerrit Dashboard: QTBUG-101702 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
400543,3 | QStringTokenizer::toContainer(): allow more types of target containers | dev | qt/qtbase | Status: MERGED | +2 | 0 |