From d1649d4acf3508067d4717d099b137925cb03751 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 22 Dec 2017 18:35:47 +1100 Subject: [PATCH] uri: remove componentwise ostream operator componentwise output was a surprising behaviour for what is sometimes a string-like object. users can elect to write the entire string via all() or the components manually as required. --- uri.cpp.rl | 8 -------- uri.hpp | 1 - 2 files changed, 9 deletions(-) diff --git a/uri.cpp.rl b/uri.cpp.rl index a7485727..79d15d6a 100644 --- a/uri.cpp.rl +++ b/uri.cpp.rl @@ -215,11 +215,3 @@ util::operator<< (std::ostream &os, util::uri::component c) unreachable (); } - - -//----------------------------------------------------------------------------- -std::ostream& -util::operator<< (std::ostream &os, const util::uri &val) -{ - return os << '[' << util::make_infix (val.components ()) << ']'; -} diff --git a/uri.hpp b/uri.hpp index f8ff25f1..ddba7198 100644 --- a/uri.hpp +++ b/uri.hpp @@ -94,7 +94,6 @@ namespace util { std::string m_value; }; - std::ostream& operator<< (std::ostream&, const uri&); std::ostream& operator<< (std::ostream&, uri::component); }