Il 05/03/21 12:08, Tor Arne Vestbø ha scritto:
This seems like a bug though? From an API point of view, I’d expect this simple assignment to JustWorkTM, without requiring syntactic sugar all over the place. Shouldn’t we fix this, so we don’t need (or leave optional) an explicit _qs suffix?

Because of

  void f(QString);
  void f(QStringView);
  f(u"foobar"); // ambiguous

combined with the overarching plan of adding QStringView overloads when possible (that is, in functions where historically we weren't doing so) and never breaking BC/SC.

HTH,
--
Giuseppe D'Angelo | [email protected] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

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

Reply via email to