aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-01 16:11:55 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-04 08:32:59 +0100
commit02580d1bd7f77deff3f3786cc9a9503e25be8032 (patch)
treeb5f3c960f6ad524ba023201071fb8208f7475f4a
parent3b25615aefb36ae747c29220ff80b6de2934c034 (diff)
downloadpaludis-02580d1bd7f77deff3f3786cc9a9503e25be8032.tar.gz
paludis-02580d1bd7f77deff3f3786cc9a9503e25be8032.tar.xz
Make Hash<> work for enums
-rw-r--r--paludis/util/hashes.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/util/hashes.hh b/paludis/util/hashes.hh
index 5d74eed..e700f23 100644
--- a/paludis/util/hashes.hh
+++ b/paludis/util/hashes.hh
@@ -59,7 +59,7 @@ namespace paludis
public:
std::size_t operator() (const T_ & t) const
{
- return hash_internals::DefaultHash<T_, std::is_integral<T_>::value>::hash(t);
+ return hash_internals::DefaultHash<T_, std::is_integral<T_>::value || std::is_enum<T_>::value>::hash(t);
}
};