Olivier Goffart <oliv...@woboq.com> schrieb am Fr. 17. Juli 2020 um 19:12:
> On 17/07/20 19:00, Thiago Macieira wrote: > > On Friday, 17 July 2020 09:34:54 PDT Lars Knoll wrote: > >>> I'll just post this and let you ponder the consequences of this choice > for > >>> Linux: > >>> https://godbolt.org/z/nhex5x > >> > >> Yes, that’s why we need to encode that into a static_assert(). But the > >> support it coming to all compilers and Linux desktops will support the > >> feature both with gcc and clang. I’m pretty sure ICC will follow soon. > > > > Sure. > > > > But to be clear: we're saying the MINIMUM versions of GCC and Clang for > Qt 6.0 > > are 9.0. GCC 9 was released in May 2019 and LLVM 9 was released in > September > > 2019. > > > > Apple Clang in the current XCode does NOT support it. > > > > Versions of mainstream Linux distributions with GCC 9: > > * Debian: testing > > * Fedora: 30 > > * openSUSE: 15.2 > > * Ubuntu: 19.10 > > (Arch, Clear, Gentoo are rolling releases) > > > > If you're not working from home, go around in the office and ask who's > running > > anything older. > > > > > Maybe use the GCC extension of using an empty array: > > https://godbolt.org/z/MvE9jf > __________________________________________ I think the primary environment where a transition and resulting BC breakage would be annoying is the Linux system environment with gcc. This is where Olivier’s solution is quite elegant IMO. Simon >
_______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development