aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-05-18 15:22:21 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-05-18 15:22:21 +0300
commit3bd7d2ec3004471e360910124e8d23aefbea4e96 (patch)
tree72fca90dea355b5dcfe584a73299a19bd383c144
parent75845ef500cfc02531a7da80d2f41650f5db9bb1 (diff)
Add operator<<(ostream) for dependency_alternative and dependency_alternatives
-rw-r--r--libbpkg/manifest.hxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/libbpkg/manifest.hxx b/libbpkg/manifest.hxx
index 94206f3..09d64d1 100644
--- a/libbpkg/manifest.hxx
+++ b/libbpkg/manifest.hxx
@@ -591,6 +591,12 @@ namespace bpkg
single_line () const;
};
+ inline std::ostream&
+ operator<< (std::ostream& os, const dependency_alternative& da)
+ {
+ return os << da.string ();
+ }
+
class dependency_alternatives:
public butl::small_vector<dependency_alternative, 1>
{
@@ -643,9 +649,9 @@ namespace bpkg
};
inline std::ostream&
- operator<< (std::ostream& os, const dependency_alternatives& da)
+ operator<< (std::ostream& os, const dependency_alternatives& das)
{
- return os << da.string ();
+ return os << das.string ();
}
// requires