[Development] final value classes: some background information and plans

andre.poenitz at nokia.com andre.poenitz at nokia.com
Wed Mar 7 12:25:35 CET 2012


Marc Mutz wote:
> I've uploaded a patch series that makes most of the value classes in QtCore
> final in the C++11 sense (ie. under a C++11 compiler, these can no longer be
> inherited from). 

I disagree with the idea of making Qt core classes non-inheritable.

While inheritance from "value" classes is rarely needed, it _is_ useful at times.
Most notably, private inheritance is even "pretty safe".

There is no need to artificially deprive us of useful tools.

Andre'



More information about the Development mailing list