--===============1841123223== Content-Type: multipart/signed; boundary="nextPart2880712.pr0RJiT7xO"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2880712.pr0RJiT7xO Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline David Jarvie wrote: >On Friday 17 November 2006 23:20, Thiago Macieira wrote: >> No. All iterators are invalidated when the container is modified, both >> in Qt3 and Qt4 (both pointer- and value-based). >> >> The fact that it worked before was just luck. You were relying on >> undefined behaviour. > >The Qt 3.3 documentation for QValueList states "Inserting into the list > does not invalidate any iterator." I can't find any similar statement > in the Qt 4.2 documentation. Hmm... you're right. In 3.3, QValueList is a linked list, so inserting=20 doesn't cause reallocation of memory. In 4.x, QList isn't a pure linked=20 list, so inserting may cause reallocation. QLinkedList won't be affected. =2D-=20 =A0 Thiago Macieira =A0- =A0thiago (AT) macieira.info - thiago (AT) kde.org =A0 =A0 PGP/GPG: 0x6EF45358; fingerprint: =A0 =A0 E067 918B B660 DBD1 105C =A0966C 33F5 F005 6EF4 5358 --nextPart2880712.pr0RJiT7xO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFXtLQM/XwBW70U1gRAl8aAJ9bJlwItiijyjpw/GJqcobe+QD74gCeI2ya Btnlh66e8WpA/gifXbnXWkE= =UUj9 -----END PGP SIGNATURE----- --nextPart2880712.pr0RJiT7xO-- --===============1841123223== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1841123223==--