diff options
-rw-r--r-- | include/llvm/ADT/HashExtras.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/ADT/HashExtras.h b/include/llvm/ADT/HashExtras.h index f82115a07c..ab9b302ff1 100644 --- a/include/llvm/ADT/HashExtras.h +++ b/include/llvm/ADT/HashExtras.h @@ -23,12 +23,6 @@ // Cannot specialize hash template from outside of the std namespace. namespace HASH_NAMESPACE { -template <> struct hash<std::string> { - size_t operator()(std::string const &str) const { - return hash<char const *>()(str.c_str()); - } -}; - // Provide a hash function for arbitrary pointers... template <class T> struct hash<T *> { inline size_t operator()(const T *Val) const { @@ -36,6 +30,12 @@ template <class T> struct hash<T *> { } }; +template <> struct hash<std::string> { + size_t operator()(std::string const &str) const { + return hash<char const *>()(str.c_str()); + } +}; + } // End namespace std #endif |