Compile with clang
authorBradley T. Hughes <bradley.hughes@nokia.com>
Thu, 20 Oct 2011 09:18:48 +0000 (11:18 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 24 Oct 2011 13:39:33 +0000 (15:39 +0200)
commit642fe4040b3b169b9377b6b5bad28a9189aefe2d
tree422b264fc9a91a3a9cb8c4db737ff45b53ca8988
parent4bff8ea4d48851fbea078bd93226888bdd05d8dc
Compile with clang

Clang does not accept this syntax, see
http://llvm.org/bugs/show_bug.cgi?id=8875

The work around is to not use the typedef name. NS() around the
template parameters is necessary to match the real types (and
not the QMetaType::Type enumerators), otherwise we get the following:

kernel/qmetatype.cpp:1647:72: error: template argument for template type
      parameter must be a type
  ...NS(QVariantMap)* >(where)->NS(QVariantMap)::~QMap<QString, ...
                                                       ^~~~~~~

Change-Id: I3afa0cbbe4ef7ad899cfa9eafb3bcc10bedc20b3
Reviewed-by: Wolf-Michael Bolle <wolf-michael.bolle@nokia.com>
Reviewed-by: Thiago Macieira (Intel) <thiago.macieira@intel.com>
src/corelib/kernel/qmetatype.cpp