diff options
Diffstat (limited to 'include/Support/HashExtras.h')
-rw-r--r-- | include/Support/HashExtras.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Support/HashExtras.h b/include/Support/HashExtras.h index da9e3f5cba..5887a83116 100644 --- a/include/Support/HashExtras.h +++ b/include/Support/HashExtras.h @@ -14,10 +14,10 @@ #include <Support/hash_map> // Cannot specialize hash template from outside of the std namespace. -namespace std { +namespace HASH_NAMESPACE { -template <> struct hash<string> { - size_t operator()(string const &str) const { +template <> struct hash<std::string> { + size_t operator()(std::string const &str) const { return hash<char const *>()(str.c_str()); } }; |