aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/sanitised_dependencies.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-11-27 22:10:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-11-28 00:54:36 +0000
commit1945bc4f10d16e53392a945fd39f87e435256a45 (patch)
tree25fdaa07a2b30b0a3387ba9f9938b30785c54083 /paludis/resolver/sanitised_dependencies.cc
parent2adc701cea7587b027bffd94ac6fb069e7722342 (diff)
downloadpaludis-1945bc4f10d16e53392a945fd39f87e435256a45.tar.gz
paludis-1945bc4f10d16e53392a945fd39f87e435256a45.tar.xz
Don't use virtuals for wrapped forward iterators
Diffstat (limited to 'paludis/resolver/sanitised_dependencies.cc')
-rw-r--r--paludis/resolver/sanitised_dependencies.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/resolver/sanitised_dependencies.cc b/paludis/resolver/sanitised_dependencies.cc
index cb1375f..46878d5 100644
--- a/paludis/resolver/sanitised_dependencies.cc
+++ b/paludis/resolver/sanitised_dependencies.cc
@@ -29,6 +29,9 @@
#include <paludis/util/join.hh>
#include <paludis/util/wrapped_forward_iterator-impl.hh>
#include <paludis/util/make_shared_copy.hh>
+#include <paludis/util/indirect_iterator-impl.hh>
+#include <paludis/util/wrapped_output_iterator-impl.hh>
+#include <paludis/util/sequence-impl.hh>
#include <paludis/spec_tree.hh>
#include <paludis/slot_requirement.hh>
#include <paludis/metadata_key.hh>
@@ -409,6 +412,12 @@ namespace paludis
{
std::list<SanitisedDependency> sanitised_dependencies;
};
+
+ template <>
+ struct WrappedForwardIteratorTraits<SanitisedDependencies::ConstIteratorTag>
+ {
+ typedef std::list<SanitisedDependency>::const_iterator UnderlyingIterator;
+ };
}
SanitisedDependencies::SanitisedDependencies() :
@@ -575,5 +584,8 @@ SanitisedDependency::deserialise(Deserialisation & d, const std::tr1::shared_ptr
);
}
+template class Sequence<PackageOrBlockDepSpec>;
+template class WrappedForwardIterator<Sequence<PackageOrBlockDepSpec>::ConstIteratorTag, const PackageOrBlockDepSpec>;
+
template class WrappedForwardIterator<SanitisedDependencies::ConstIteratorTag, const SanitisedDependency>;