Details
-
Suggestion
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
5.15.8
-
None
Description
The following GoogleTest pretty printer does not compile:
inline void PrintTo(QStringView string, ::std::ostream *os) { *os << qUtf8Printable(string); }
One would expect qPrintable(), qUtf8Printable(), and qUtf16Printable() to work for all the Qt string classes.
The workaround is to explicitly call QStringView::toUtf8() etc instead.
Attachments
For Gerrit Dashboard: QTBUG-100979 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
396573,1 | qUtf8Printable: make QStringView work too | dev | qt/qtbase | Status: ABANDONED | -2 | 0 |