On 13/05/2020 11.49, Giuseppe D'Angelo wrote:
Il 13/05/20 16:44, Matthew Woehlke ha scritto:
Note that adding the QString(char16_t*) constructor
Pedantic, but surely you meant `char16_t const*`.

Hey, you can't nitpick here ...


This can be solved with a third overload:

   template <size_t N>
   void foo(char16_t (&s)[N]) { foo(QStringView{s, N}); }

... and then do the same mistake in the same email >:-)

Touché :-D. I fixed it in my godbolt experiment, but yup, missed it here.


--
Matthew
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to