> On 17 Jul 2020, at 10:47, Ulf Hermann <ulf.herm...@qt.io> wrote: > > >> >> Would it be sensible to make this a configure feature: if C++20 is >> explicitly enabled, use it? It’s in the standard after all. >> But auto-detecting it is perhaps unnecessarily fragile. > > No, we should just static_assert for [[no_unique_address]] being available on > the platforms where we expect it. That is, anywhere but on certain MSVCs.
Some older embedded toolchains don’t have the flag neither. > > If we make it a configure feature, we open the door to BIC problems as we > might accidentally turn it off in some builds. > We should simply add a static assert that the Qt and the applications build mode are compatible. Cheers, Lars > Ulf > _______________________________________________ > 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