-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.6.0, 6.5.0 Beta2
-
None
-
-
21
-
Foundation PM Staging
I hope QTextStream can add a operator bool() method, just like basic_istream in c++ STL:
operator bool() const
Now if i need know whether QTextStream has the right format, i need do as this:
QTextStream >> x;
if(ss.status() == QTextStream::Ok)
{
}
if QTextStream has operator bool() method, then i can do this:
if(QTextStream >> x)
{
}
This will be compatible with STL when convert code from STL to QT.
Thanks!
| For Gerrit Dashboard: QTBUG-52189 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 609424,13 | [QTextStream] Add operator bool() to QTextStream class | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 609645,5 | QTextStream: use new operator bool() around the code | dev | qt/qtbase | Status: MERGED | +2 | 0 |