Name: added operator << for ostream.
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp
index 904e74d..0fe7284 100644
--- a/ndn-cpp/name.hpp
+++ b/ndn-cpp/name.hpp
@@ -511,6 +511,13 @@
   std::vector<Component> components_;
 };  
 
+inline std::ostream&
+operator << (std::ostream& os, const Name& name)
+{
+  os << name.toUri();
+  return os;
+}
+
 }
 
 #endif