On Friday 10 July 2015 12:20:55 Smith Martin wrote: > I'm asking if QList<C> becomes QList<C*> even if I declare it as QList<C>.
And I said in the initial mail: On Friday 10 July 2015 11:03:49 Marc Mutz wrote: > I won't give you the whole story (google "QList harmful" for that) Which you clearly haven't done. Otherwise you'd have found the first hit https://marcmutz.wordpress.com/2010/07/29/sneak-preview-qlist-considered- harmful/ whose second sentence reads: The problem boils down to the fact that for a lot of types T, QList<T> is needlessly inefficient by allocating elements on the heap and storing pointers to them instead of storing the elements in-place, like e.g. QVector does. But yes, Peppe already provided the TL;DR: *grmbl* He's the nicer of the two of us :) -- Marc Mutz <[email protected]> | Senior Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company Tel: +49-30-521325470 KDAB - The Qt Experts _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
