[Development] QVariant and types with throwing dtors

Ville Voutilainen ville.voutilainen at gmail.com
Tue Aug 27 01:33:21 CEST 2024


On Mon, 26 Aug 2024 at 20:41, Marc Mutz via Development
<development at qt-project.org> wrote:
> What is unacceptable in (1) (doing nothing) is not even _informing_
> users about what we found¹, so _they_ can decide for themselves what to do.
>
> ¹ neither at compile-time, nor runtime, nor coding time (static checker)
>    nor at documentation reading time.
>
> We want our APIs to be easy to use and hard to abuse. It's easy to abuse
> QVariant in this way, so it behooves us to try to do _something_ about it.

Considering that types with throwing destructors are rarer than
unicorns, that doesn't exactly seem
like something we should put effort into.


More information about the Development mailing list