[Development] HEADS-UP: QStringLiteral

Konstantin Tokarev annulen at yandex.ru
Wed Aug 21 17:23:27 CEST 2019



21.08.2019, 18:19, "Tor Arne Vestbø" <tor.arne.vestbo at qt.io>:
>>  On 21 Aug 2019, at 16:47, Thiago Macieira <thiago.macieira at intel.com> wrote:
>>
>>  On Wednesday, 21 August 2019 03:01:29 PDT Tor Arne Vestbø wrote:
>>>  This should just be test[“key”] = “value”. How do we get there?
>>
>>  Do you mean "make this the most optimal?" If so, then we don't get there. It's
>>  not possible.
>
> Optimal enough :) With a way to micro-optimise it using a more explicit API iffffffffffff needed.
>
>>  We could do it for literals with some constexpr help in the QString
>
> That’s what I was hoping. We have QFooLiteral today to let the compiler do the work up front, isn’t it possible with newer c++ standards to have that happen automatically without an explicit QFooLiteral?

I hope that standard committee will never introduce implicit generation of UTF16 literals from C string literals.

-- 
Regards,
Konstantin



More information about the Development mailing list