[Development] C++20 comparisons @ Qt (was: Re: C++20 @ Qt)
Thiago Macieira
thiago.macieira at intel.com
Thu Nov 9 16:43:43 CET 2023
On Thursday, 9 November 2023 01:29:32 PST Ivan Solovev via Development wrote:
> Thiago wrote:
> > We can also just be evil and use bit_cast
>
> Why is that evil? Reading about std::bit_cast, this can be an option, if we
> guarantee that sizeof(Qt::*_ordering) == sizeof(std::*_ordering).
> Which is, probably, already true.
Because the types in the libraries seem to be made so it's very difficult to get
the actual values into and out of them. But bit_cast throws that away and
allows us to see behind the scenes.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5163 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20231109/448563de/attachment.bin>
More information about the Development
mailing list