aboutsummaryrefslogtreecommitdiff
path: root/paludis/version_operator.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/version_operator.hh')
-rw-r--r--paludis/version_operator.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/paludis/version_operator.hh b/paludis/version_operator.hh
index a548c6061..cf053906a 100644
--- a/paludis/version_operator.hh
+++ b/paludis/version_operator.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2005, 2006, 2007, 2010 Ciaran McCreesh
+ * Copyright (c) 2005, 2006, 2007, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -119,6 +119,11 @@ namespace paludis
return _v == other._v;
}
+ std::size_t hash() const
+ {
+ return static_cast<std::size_t>(_v);
+ }
+
///\}
};