From 7f74a56e2436c40b18a672ad7d58727cd6832329 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 20 Jan 2002 22:54:45 +0000 Subject: Changes to build successfully with GCC 3.02 llvm-svn: 1503 --- llvm/include/Support/HashExtras.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'llvm/include/Support/HashExtras.h') diff --git a/llvm/include/Support/HashExtras.h b/llvm/include/Support/HashExtras.h index 6ea831e78f0..d7e48a3b625 100644 --- a/llvm/include/Support/HashExtras.h +++ b/llvm/include/Support/HashExtras.h @@ -11,7 +11,10 @@ #define LLVM_SUPPORT_HASHEXTRAS_H #include -#include +#include + +// Cannot specialize hash template from outside of the std namespace. +namespace std { template <> struct hash { size_t operator()(string const &str) const { @@ -24,4 +27,6 @@ template struct hash { inline size_t operator()(const T *Val) const { return (size_t)Val; } }; +} // End namespace std + #endif -- cgit v1.2.3