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-17 14:51:00 +0100
commitb47253bbd27e07d1745f95a67c84a7af059483e9 (patch)
treed9b383f42f7ba903bc1964d4cfb15e7bf76484ee
parentb0ec18f199513099606a9e4f85b2842e368dc66d (diff)
downloadpaludis-b47253bbd27e07d1745f95a67c84a7af059483e9.tar.gz
paludis-b47253bbd27e07d1745f95a67c84a7af059483e9.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_>