diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:20:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-24 22:20:00 +0000 |
commit | 8dc67168ccbd09821ff6d963b26461e9b47028e7 (patch) | |
tree | 2c8a8e915251e5cd2d41f78b7719eed0d9e32c8d /include/Support/HashExtras.h | |
parent | fe8041ae397ebbcc311469aa39dfb79f8191b412 (diff) |
GCC 3.1 fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3066 91177308-0d34-0410-b5e6-96231b3b80d8
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()); } }; |