aboutsummaryrefslogtreecommitdiff
path: root/bpkg/types
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-22 12:09:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-22 12:09:27 +0200
commit8749eeea8723196fa38a9eb7917775cfe8b87ad7 (patch)
treeb9c3fb8f82ce2227f98d9ee40740906e8d4ab235 /bpkg/types
parentaea4e5401af4e28a32d99e0e3c2ecd42888c2ba4 (diff)
Use diagnostics facility from libbutl
Diffstat (limited to 'bpkg/types')
-rw-r--r--bpkg/types12
1 files changed, 11 insertions, 1 deletions
diff --git a/bpkg/types b/bpkg/types
index 8bff6bb..e20acfb 100644
--- a/bpkg/types
+++ b/bpkg/types
@@ -82,11 +82,21 @@ namespace bpkg
using paths = std::vector<path>;
using dir_paths = std::vector<dir_path>;
+}
+// In order to be found (via ADL) these have to be either in std:: or in
+// butl::. The latter is bad idea since libbutl includes the default
+// implementation.
+//
+namespace std
+{
// Custom path printing (with trailing slash for directories).
//
inline ostream&
- operator<< (ostream& os, const path& p) {return os << p.representation ();}
+ operator<< (ostream& os, const ::butl::path& p)
+ {
+ return os << p.representation ();
+ }
}
#endif // BPKG_TYPES