[Development] HEADS UP: Don't use QList, use Q_DECLARE_TYPEINFO
kuba at mareimbrium.org
Fri Aug 7 19:41:07 CEST 2015
On Tue, Jul 21, 2015 at 11:47 AM, Thiago Macieira <thiago.macieira at intel.com
> On Tuesday 21 July 2015 10:19:59 Matthew Woehlke wrote:
> > On 2015-07-21 01:06, Thiago Macieira wrote:
> > Is it possible to have Qt type traits
> > on a type T such that QList<T> will always be QVector-like? Or would it
> > be impossible to support that in QList? (This would be for Qt 6,
> We could create a user-configurable trait, but experience in the past 10
> has shown that people do not use the macros that make things efficient. So
> can't depend on the right actions to make things efficient.
> Just look at how many commits Marc has needed to do in Qt itself to declare
> types as movable.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Development