When using the armcc4.1 to compiler my code, it reports following error:
"access/qnetworkrequest_p.h", line 94: Error: #2574: explicit specialization of class "QTypeInfo>" must precede its first use (at line 105 of "../../include/QtCore/../../src/corelib/tools/qlist.h") Q_DECLARE_TYPEINFO(QNetworkHeadersPrivate::RawHeaderPair, Q_MOVABLE_TYPE);
class QNetworkHeadersPrivate
{
public:
typedef QPair<QByteArray, QByteArray> RawHeaderPair;
typedef QList<RawHeaderPair> RawHeadersList;
...
};
Q_DECLARE_TYPEINFO(QNetworkHeadersPrivate::RawHeaderPair, Q_MOVABLE_TYPE);
But, is there a way to disable or bypass this error?
Answer my question: finally it's fixed by removing the last line, it's because this declaration is redundant.