[Development] User-defined literals for QString (and QByteArray)

Tor Arne Vestbø Tor.arne.Vestbo at qt.io
Fri Mar 5 12:08:02 CET 2021


On 3 Mar 2021, at 16:53, Andrei Golubev <andrei.golubev at qt.io<mailto:andrei.golubev at qt.io>> wrote:

QString hello = u"Hello"; // oops, compilation error

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?

Tor Arne

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20210305/5a27e8df/attachment.html>


More information about the Development mailing list