[Development] Applications using -fno-rtti
André Pönitz
apoenitz at t-online.de
Sun Jun 21 15:44:23 CEST 2020
On Sun, Jun 21, 2020 at 11:22:58AM +0000, Lars Knoll wrote:
> We didn’t want it in earlier versions of Qt for mainly two reasons. Early
> implementations had quite an overhead on library size, and dynamic_cast didn’t
> work reliable between DLL boundaries on Windows. Both problems have gone away
> many years ago.
I would appreciate if someone on Windows could run a reality check on that
with a dynamic_cast between classes that don't have a key function, i.e.
where everything is inlined and/or templates.
> [...]
> We are making use of dynamic_cast and typeid in Qt nowadays, so I guess it’s
> high time we adjust the wiki.
The fact that it works in some, even common, situations doesn't imply
it works safely everywhere.
Andre'
More information about the Development
mailing list