[Development] QVariant and types with throwing dtors

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Mon Aug 26 21:22:09 CEST 2024


Il 26/08/24 19:49, Thiago Macieira ha scritto:
> A runtime warning is unacceptable because it adds to the cost of the 99.99%
> who don't have a throwing destructor.
> 
> A compile-time warning implies having a way to disable it with "I know that,
> just ignore it" which is maintenance for us. My problem with this is the cost
> on us, to maintain such a thing that has never been a problem and likely never
> will.

There's a perfect place for such warnings, and that's tooling like Clazy 
/ Clang-tidy (where you could also extend this to cover way more than 
QVariant -- any Qt / std container, algorithm, and so on).

Thanks,

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - Trusted Software Excellence

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240826/dea5a26e/attachment.bin>


More information about the Development mailing list