Clang: Remove undefined behavior

Never forward declare STL container.

Change-Id: Ie2d222f858f555294581bbea90300755973cb54e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2016-08-08 13:13:13 +02:00
parent 413a601f69
commit ebb82a2aa9

View File

@@ -44,6 +44,7 @@
#include <cstring> #include <cstring>
#include <iosfwd> #include <iosfwd>
#include <string> #include <string>
#include <unordered_map>
#include <utility> #include <utility>
#pragma push_macro("constexpr") #pragma push_macro("constexpr")
@@ -842,14 +843,6 @@ template<> struct hash<Utils::SmallString>
} }
}; };
template<
class Key,
class T,
class Hash,
class KeyEqual,
class Allocator>
class unordered_map;
template<typename Key, template<typename Key,
typename Value, typename Value,
typename Hash = hash<Key>, typename Hash = hash<Key>,