aboutsummaryrefslogtreecommitdiff
path: root/paludis/user_dep_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/user_dep_spec.cc')
-rw-r--r--paludis/user_dep_spec.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/user_dep_spec.cc b/paludis/user_dep_spec.cc
index 4e810d0d6..f810e4c24 100644
--- a/paludis/user_dep_spec.cc
+++ b/paludis/user_dep_spec.cc
@@ -505,6 +505,12 @@ namespace
accept_visitor_returning<bool>(*this));
}
+ bool visit(const GenericSpecTree::NodeType<AtMostOneDepSpec>::Type & n) const
+ {
+ return indirect_iterator(n.end()) != std::find_if(indirect_iterator(n.begin()), indirect_iterator(n.end()),
+ accept_visitor_returning<bool>(*this));
+ }
+
bool visit(const GenericSpecTree::NodeType<ConditionalDepSpec>::Type & n) const
{
if (n.spec()->condition_met(env, id))