[Development] HEADS UP: Don't use QList, use Q_DECLARE_TYPEINFO

Thiago Macieira thiago.macieira at intel.com
Sun Aug 9 08:00:24 CEST 2015


On Sunday 09 August 2015 03:26:33 Kevin Kofler wrote:
> Marc Mutz wrote:
> > On Friday 07 August 2015 19:41:07 Kuba Ober wrote:
> >> How about making such traits explicitly necessary? People would then have
> >> to learn about them. As a user, I wouldn't mind - the compiler would pick
> >> it all up for me.
> > 
> > An option for Qt 6, but for Qt 5, it would be a source-incompatible
> > change.
> 
> Or, since we're already discussing source-incompatible changes, how about
> defaulting to Q_MOVABLE_TYPE? It's the common case, and if you screw up,
> you'll notice it crash and burn pretty quickly.

No can do.

Please see the C++17 proposal of destructive moves instead.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list