Do you have something like this?
#include <qmap.h>
#include <qstring.h>
#include <qvariant.h>
int main()
{
X x;
x.insert( "AAA", 10 );
y->insert( "BBB", x );
delete y;
return 0;
}
#include <qmap.h>
#include <qstring.h>
#include <qvariant.h>
typedef QMap< QString, QVariant > X;
int main()
{
QMap< QString, X > * y = new QMap< QString, X >();
X x;
x.insert( "AAA", 10 );
y->insert( "BBB", x );
delete y;
return 0;
}
To copy to clipboard, switch view to plain text mode
It works OK on my system (PLD Linux, Qt 3.3.6). Even if QMap destructor wasn't re-entrant, it's still a class template, so these maps would have different destructors.
Bookmarks