On segunda-feira, 27 de março de 2017 11:14:24 PDT Giuseppe D'Angelo wrote:
> If we can't make it an alias, can we start adding extra functions for
> the various QStringRef *ref() methods (in QXmlStreamReader,
> QRegularExpressionMatch, probably elsewhere too), returning QStringView?

Never return QStringView in our API. It's as bad as returning a const 
reference.

In fact, that's a good rule of thumb: if you could have used a const QString & 
in that function, you can use QStringView. Otherwise, return QString by value.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to