> On 21 Aug 2019, at 16:47, Thiago Macieira <thiago.macie...@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? Tor Arne _______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development