QMetaType: Fix copy of type erased iterator
authorStephen Kelly <stephen.kelly@kdab.com>
Thu, 12 Dec 2013 16:33:09 +0000 (17:33 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 13 Dec 2013 08:28:30 +0000 (09:28 +0100)
commit0da7e0fa8fa0f4e216899e24b3cedf1e09759628
treefd4ac342e6cf57c30fda168c15e7888ba4494647
parent444914839541154b0927cd1d49890677b8368148
QMetaType: Fix copy of type erased iterator

Behavior differs depending on whether the iterator is a value_type*,
or a different class entirely. Ensure that the correct behavior is
used when copying.

Task-number: QTBUG-33997

Change-Id: Ib6db2a3c4a5aa861b851833a7f0ecb855a3e828f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/corelib/kernel/qmetatype.h