aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 17:25:21 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-26 17:25:21 +0000
commitf0457ef2df7ead17540a959ca6f064b950079ca8 (patch)
tree18be40c4e11094bd7b4f4e5cdb8bbe1d21a287e3
parentda8868f30605dca38a44986a7905a18978489144 (diff)
downloadpaludis-f0457ef2df7ead17540a959ca6f064b950079ca8.tar.gz
paludis-f0457ef2df7ead17540a959ca6f064b950079ca8.tar.xz
Include binary operator() for old style hashes
-rw-r--r--paludis/dep_list/uninstall_list.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/paludis/dep_list/uninstall_list.cc b/paludis/dep_list/uninstall_list.cc
index 85b2df8..8654d72 100644
--- a/paludis/dep_list/uninstall_list.cc
+++ b/paludis/dep_list/uninstall_list.cc
@@ -43,6 +43,14 @@ namespace paludis
{
return CRCHash<std::string>::operator() (stringify(val));
}
+
+#if (! PALUDIS_HAVE_TR1_HASHES) && (! PALUDIS_HAVE_EXT_HASHES)
+ bool operator() (const PackageDatabaseEntry & lhs,
+ const PackageDatabaseEntry & rhs) const
+ {
+ return stringify(lhs) < stringify(rhs);
+ }
+#endif
};
template<>