tst_collections: "explicit instantiation of 'NS::QList' must occur in namespace 'NS'

Probably correct.

The question is just why this code has survived for so many years.

Change-Id: Iaf01850476f9b066243abebb9ee6c5928d7ada19
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
bb10
Marc Mutz 2015-12-23 02:12:35 +01:00 committed by Simon Hausmann
parent 75612a4b4f
commit 29ddfc3be7
1 changed files with 2 additions and 0 deletions

View File

@ -90,7 +90,9 @@ void foo()
#include "qvector.h"
#include "qqueue.h"
QT_BEGIN_NAMESPACE
template class QList<int>;
QT_END_NAMESPACE
class tst_Collections : public QObject
{