[Development] Disabling exception support in QtCore?

Marc Mutz marc.mutz at kdab.com
Fri Oct 4 09:17:25 CEST 2013


On 2013-10-04 07:34, Kurt Pattyn wrote:
> In some markets like Avionics and Defense, it is simply forbidden for
> us to use exceptions.

The only reason to forbid exceptions on technical (as opposed to 
uneducated or -worse- political) grounds is in hard real-time systems, 
because throwing an exception doesn't have a deterministic runtime in 
current implementations. But neither do malloc and operator new, so you 
will find that they tend to get banned together. I doubt that Qt will be 
used in a hard real-time environment with banned dynamic allocations 
anytime soon :)

Thanks,
Marc



More information about the Development mailing list