aboutsummaryrefslogtreecommitdiff
path: root/bpkg/types
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-24 14:46:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-30 12:32:32 +0200
commit67a0e8d70f0caf8b85e0cf2031333236b2a3dcdf (patch)
tree3a7d71cd1553338cccb19190dc47bfceafd52499 /bpkg/types
parentcf86194e91d55464f9c137258e4157415d196697 (diff)
Add checksum verification
Diffstat (limited to 'bpkg/types')
-rw-r--r--bpkg/types12
1 files changed, 8 insertions, 4 deletions
diff --git a/bpkg/types b/bpkg/types
index e667fc0..b0db478 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -10,6 +10,7 @@
#include <memory> // shared_ptr, unique_ptr
#include <cstddef> // size_t
#include <cstdint> // uint{8,16,32,64}_t
+#include <istream>
#include <ostream>
#include <odb/lazy-ptr.hxx>
@@ -33,6 +34,9 @@ namespace bpkg
using strings = vector<string>;
using cstrings = vector<const char*>;
+ using std::istream;
+ using std::ostream;
+
using butl::optional;
using butl::nullopt;
@@ -56,11 +60,11 @@ namespace bpkg
using paths = std::vector<path>;
using dir_paths = std::vector<dir_path>;
- inline std::ostream&
- operator<< (std::ostream& os, const path& p) {return os << p.string ();}
+ inline ostream&
+ operator<< (ostream& os, const path& p) {return os << p.string ();}
- inline std::ostream&
- operator<< (std::ostream& os, const dir_path& p)
+ inline ostream&
+ operator<< (ostream& os, const dir_path& p)
{
const string& s (p.string ());
os << s;