Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.0.2
-
None
Description
In Qt 4 it was possible to have a private destructor in a class that was using QMap, but in Qt 5 this is not possible.
In Qt/qtbase/corelib/tools/qmap.h destroySubTree()
template <class Key, class T> void QMapNode<Key, T>::destroySubTree() { if (QTypeInfo<Key>::isComplex) key.~Key(); if (QTypeInfo<T>::isComplex) value.~T();
the destructor is called directly instead of delete. Is there a reasoning behind this? If yes, then it must be documented to be a requirement for QMap.