I'm calling toStdString on a QStringRef
I'm calling toStdString() on a QStringRef in Qt 5.3.2 and it is working but according to the documentation QStringRef doesn't have this member function, not even inherited. How come it still works?
QString s("test"); QStringRef r(&s); qDebug() << r.toStdString();
Doesn't compile for me with Qt 5.9.1 on x86-64 desktop Linux.
@Wieland I'm very sorry. I missed a line of code where I converted it to a QString. Silly mistake.