[Development] C++20 structural types (was: C++20 @ Qt)

Allan Sandfeld Jensen kde at carewolf.com
Sat Nov 5 01:04:30 CET 2022

On Freitag, 4. November 2022 21:47:14 CET Thiago Macieira wrote:
> On Friday, 4 November 2022 10:38:30 PDT Allan Sandfeld Jensen wrote:
> > Can we even do that, and still preserve ABI and API?
> I don't see why not. QFlags is already standard-layout, trivially copyable
> and trivially destructible. Changing the member from private to public
> won't affect any of those properties.

Right, but it is only forward compatible, as making members public gives new 
API options. So okay for a minor release, but not for a point release that 
also needs to be backwards compatible.


More information about the Development mailing list