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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to