aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/serialise-impl.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/paludis/serialise-impl.hh b/paludis/serialise-impl.hh
index 89baf3d..cfb431b 100644
--- a/paludis/serialise-impl.hh
+++ b/paludis/serialise-impl.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009 Ciaran McCreesh
+ * Copyright (c) 2009, 2010 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
@@ -29,6 +29,7 @@
#include <paludis/package_id-fwd.hh>
#include <paludis/dep_spec-fwd.hh>
#include <tr1/type_traits>
+#include <vector>
#include <list>
#include <ostream>
#include <istream>
@@ -146,6 +147,12 @@ namespace paludis
typedef typename std::list<T_>::const_iterator Type;
};
+ template <typename T_>
+ struct SerialiserConstIteratorType<std::vector<T_> >
+ {
+ typedef typename std::vector<T_>::const_iterator Type;
+ };
+
template <
typename T_>
struct SerialiserObjectWriterHandler<true, false, T_>