X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FADT%2FHashExtras.h;h=ab9b302ff1bb0131995d64d450821525b23155ab;hb=d828e340a80f268a6e51d451a75fb6c2282e17b1;hp=f82115a07c5ef01a7a2e51672850f46897d73d78;hpb=0b5b5e952c15c79c356a8a630e1c373693d1d993;p=oota-llvm.git diff --git a/include/llvm/ADT/HashExtras.h b/include/llvm/ADT/HashExtras.h index f82115a07c5..ab9b302ff1b 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 { - size_t operator()(std::string const &str) const { - return hash()(str.c_str()); - } -}; - // Provide a hash function for arbitrary pointers... template struct hash { inline size_t operator()(const T *Val) const { @@ -36,6 +30,12 @@ template struct hash { } }; +template <> struct hash { + size_t operator()(std::string const &str) const { + return hash()(str.c_str()); + } +}; + } // End namespace std #endif