Merged revisions 570-575,577-578 via svnmerge from
[senf.git] / Socket / SocketHandle.ct
index 11d309c..56f9346 100644 (file)
 #define prefix_
 ///////////////////////////////ct.p////////////////////////////////////////
 
+///////////////////////////////////////////////////////////////////////////
+// senf::detail::StreamableString
+
 template <class T>
-prefix_ senf::detail::ConvertibleString &
-senf::detail::ConvertibleString::operator+=(ConvertibleString const & other)
+prefix_ senf::detail::StreamableString &
+senf::detail::StreamableString::operator<<(T const & other)
 {
     if (!empty())
-        this->std::string::operator+=(", ");
-    this->std::string::operator+=(other);
+        (*this) += ", ";
+    (*this) += boost::lexical_cast<std::string>(other);
     return *this;
 }
 
@@ -53,4 +56,5 @@ senf::detail::ConvertibleString::operator+=(ConvertibleString const & other)
 // indent-tabs-mode: nil
 // ispell-local-dictionary: "american"
 // compile-command: "scons -u test"
+// comment-column: 40
 // End: