From 8749eeea8723196fa38a9eb7917775cfe8b87ad7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Nov 2016 12:09:27 +0200 Subject: Use diagnostics facility from libbutl --- bpkg/types | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bpkg/types') 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; using dir_paths = std::vector; +} +// 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 -- cgit v1.1