aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-15 21:08:48 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-15 21:08:48 +0100
commit57a5ecb744348698b3781bdbcd4aacd7014b7a70 (patch)
treefa05760ed6c56130483c9b549548a74af4648f6c
parent4647accd334b99314f394f9ee4dbdd5a1f15c2b8 (diff)
downloadpaludis-57a5ecb744348698b3781bdbcd4aacd7014b7a70.tar.gz
paludis-57a5ecb744348698b3781bdbcd4aacd7014b7a70.tar.xz
Recognise unordered_sets for serialisation
-rw-r--r--paludis/serialise-impl.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/paludis/serialise-impl.hh b/paludis/serialise-impl.hh
index cfb431b..fc84e6d 100644
--- a/paludis/serialise-impl.hh
+++ b/paludis/serialise-impl.hh
@@ -29,6 +29,7 @@
#include <paludis/package_id-fwd.hh>
#include <paludis/dep_spec-fwd.hh>
#include <tr1/type_traits>
+#include <tr1/unordered_set>
#include <vector>
#include <list>
#include <ostream>
@@ -153,6 +154,12 @@ namespace paludis
typedef typename std::vector<T_>::const_iterator Type;
};
+ template <typename T_, typename H_>
+ struct SerialiserConstIteratorType<std::tr1::unordered_set<T_, H_> >
+ {
+ typedef typename std::tr1::unordered_set<T_, H_>::const_iterator Type;
+ };
+
template <
typename T_>
struct SerialiserObjectWriterHandler<true, false, T_>