On Sun, Jul 19, 2020 at 01:14:08PM +0200, Giuseppe D'Angelo via Development
wrote:
offsetof is conditionally-supported for non standard layout classes in
C++17.:
oh, good. that means that the second line should also keep working, as
that is semantically equivalent with offsetof being meaningful, afaict.
On Sun, Jul 19, 2020 at 01:20:12PM +0200, Giuseppe D'Angelo via
Development wrote:
Il 19/07/20 12:51, Oswald Buddenhagen ha scritto:
- the compiler becomes intentionally belligerent, in which case an
override switch will be provided as well (if not instantly, then after
the outcry that immediately follows)
File under "surely no compiler will optimize away X!", for X in [...]
(side effects of) actual optimizations are by definition not intentional
belligerence. (one would, however, expect that entire chunks of code
being thrown away would result in a warning that informs about
specifically that (and not just the underlying warning, which may or may
not be enabled).)
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development