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

Julien Blanc julien.blanc at nmc-company.com
Fri Jul 10 12:17:16 CEST 2015


Le vendredi 10 juillet 2015 à 10:12 +0000, Curtis Mitch a écrit :


> > 
> > (*) not movable, or bigger than a void*. And user-defined types are not
> > movable by default (they're complex). And if we forget
> > Q_DECLARE_TYPEINFO on public types, we can't add it back because it's
> > binary incompatible.
> 
> How is it binary incompatible?


I believe this is because of the allocation strategy change in QList.

I wonder, however, if explicit template declaration / instanciation
(which is a new C++11 feature) would solve this issue.

Regards,

Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150710/44d19b26/attachment.html>


More information about the Development mailing list