[Development] User-defined literals for QString (and QByteArray)
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Fri Mar 5 13:23:04 CET 2021
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 | giuseppe.dangelo at kdab.com | 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20210305/c9fe909f/attachment-0001.bin>
More information about the Development
mailing list