aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-04 13:40:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-04 13:40:48 +0200
commit213f575151429bbfa0869e6d2fe99c1bbc785ce1 (patch)
tree5f362acbf687474437bfd4e56ddcf557f2d28b75
parent9730f26a59b1c5bf844c056ac413448b2c96d86a (diff)
Add support for printing version
-rw-r--r--bpkg/manifest4
1 files changed, 4 insertions, 0 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index 0ec3a3a..10d1980 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
#include <cstdint> // uint16_t
+#include <ostream>
#include <algorithm> // move()
#include <stdexcept> // logic_error
@@ -129,6 +130,9 @@ namespace bpkg
std::string canonical_upstream_; // Upstream part canonical representation.
};
+ inline std::ostream&
+ operator<< (std::ostream& os, const version& v) {return os << v.string ();}
+
// priority
//
class priority