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

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Fri Jul 10 12:33:19 CEST 2015


Il 10/07/2015 12:20, Smith Martin ha scritto:
> Sorry, you're the one who said it's bad; I'm quite happy with it. I'm asking if QList<C> becomes QList<C*> even if I declare it as QList<C>.

"Becomes" is a technically-unsound verb so I won't use it...

What happens for QList<C>, if C is "bad", is that the backing array 
allocated by QList will store pointers to C (i.e. it will be an array of 
C*, not an array of C).

HTH,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - The Qt Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4048 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150710/b92106e3/attachment.bin>


More information about the Development mailing list