On Mon, 12 Aug 2019, 22:13 Thiago Macieira, <thiago.macie...@intel.com>
wrote:

> On Monday, 12 August 2019 13:03:47 PDT Mutz, Marc via Development wrote:
> > The milestone is std::byte, which which we could put QByteArray on a
> > sound basis. And char8_t, which would make QUtf8String(View) fly.
>
> QByteArray, due to its dual string / byte array nature, will continue to
> operate on char. After all, char *is* a byte. We should add the unsigned
> char
> variants too, though.
>

What is a byte? An 8 bits unsigned integer, 0-255.
Char is unsigned on Intel arch, but is signed on arm.

Maybe it's time to get rid of qbytearray and qstring and qstringview, ...
And fully embrace (and contribute, like boost does, to)  modern c++.

My 2 cents


> As for char8_t, it's C++20. We're not going to enforce compiling Qt with
> -std=c++2a.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> _______________________________________________
> Development mailing list
> Development@qt-project.org
> https://lists.qt-project.org/listinfo/development
>
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to