From 52747ff694c0f5110c33e7f970f4f8c13742a60d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 10 Jun 2008 21:50:07 +0000 Subject: Re-enabled default Hash template svn-id: r32656 --- common/hash-str.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/common/hash-str.h b/common/hash-str.h index 5575735f1d..f64b62daed 100644 --- a/common/hash-str.h +++ b/common/hash-str.h @@ -57,11 +57,12 @@ struct IgnoreCase_Hash { -typedef HashMap StringMap; - - -#if 0 // Specalization of the Hash functor for String objects. +// We do case sensitve hashing here, because that is what +// the default EqualTo is compatible with. If one wants to use +// case insensitve hashing, then only because one wants to use +// IgnoreCase_EqualTo, and then one has to specify a custom +// hash anyway. template <> struct Hash { uint operator()(const String& s) const { @@ -75,7 +76,10 @@ struct Hash { return hashit(s); } }; -#endif + +// String map -- by default case insensitive +typedef HashMap StringMap; + } // End of namespace Common -- cgit v1.2.3