diff options
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r-- | libbuild2/utility.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx index 8e38213..20f0c22 100644 --- a/libbuild2/utility.cxx +++ b/libbuild2/utility.cxx @@ -46,11 +46,11 @@ namespace std } ostream& - operator<< (ostream& os, const ::butl::path_name& pn) + operator<< (ostream& os, const ::butl::path_name_view& v) { - assert (!pn.empty ()); + assert (!v.empty ()); - return pn.name ? (os << *pn.name) : (os << *pn.path); + return v.name != nullptr && *v.name ? (os << **v.name) : (os << *v.path); } ostream& |