summaryrefslogtreecommitdiffstats
path: root/googleurl/src/gurl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'googleurl/src/gurl.cc')
-rw-r--r--googleurl/src/gurl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/googleurl/src/gurl.cc b/googleurl/src/gurl.cc
index 3a1f2b9..e41cb71 100644
--- a/googleurl/src/gurl.cc
+++ b/googleurl/src/gurl.cc
@@ -34,6 +34,7 @@
#endif
#include <algorithm>
+#include <iostream>
#include "googleurl/src/gurl.h"
@@ -454,3 +455,6 @@ void GURL::Swap(GURL* other) {
std::swap(parsed_, other->parsed_);
}
+std::ostream& operator<<(std::ostream& out, const GURL& url) {
+ return out << url.possibly_invalid_spec();
+}