aboutsummaryrefslogtreecommitdiff
path: root/paludis/dep_spec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/dep_spec.cc')
-rw-r--r--paludis/dep_spec.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/paludis/dep_spec.cc b/paludis/dep_spec.cc
index f6acb350b..29a31422b 100644
--- a/paludis/dep_spec.cc
+++ b/paludis/dep_spec.cc
@@ -110,6 +110,18 @@ ExactlyOneDepSpec::clone() const
return result;
}
+AtMostOneDepSpec::AtMostOneDepSpec()
+{
+}
+
+std::shared_ptr<DepSpec>
+AtMostOneDepSpec::clone() const
+{
+ std::shared_ptr<AtMostOneDepSpec> result(std::make_shared<AtMostOneDepSpec>());
+ result->set_annotations(maybe_annotations());
+ return result;
+}
+
namespace paludis
{
template <>