From 3bd7d2ec3004471e360910124e8d23aefbea4e96 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 18 May 2022 15:22:21 +0300 Subject: Add operator<<(ostream) for dependency_alternative and dependency_alternatives --- libbpkg/manifest.hxx | 10 ++++++++-- 1 file 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 { @@ -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 -- cgit v1.1