Author: aconway
Date: Tue Aug 14 14:35:09 2007
New Revision: 565924

URL: http://svn.apache.org/viewvc?view=rev&rev=565924
Log:
Inlined functions that should be inline.

Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/Msg.h

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/Msg.h
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/Msg.h?view=diff&rev=565924&r1=565923&r2=565924
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/Msg.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/Msg.h Tue Aug 14 14:35:09 2007
@@ -45,13 +45,16 @@
     operator std::string() const { return str(); }
 };
 
-template <class T> const Msg& operator<<(const Msg& m, const T& t) { 
const_cast<std::ostringstream&>(m.os)<<t; return m; }
-std::ostream& operator<<(std::ostream& o, const Msg& m) { return o<<m.str(); }
+inline template <class T> const Msg& operator<<(const Msg& m, const T& t) {
+    const_cast<std::ostringstream&>(m.os)<<t; return m;
+}
+
+inline std::ostream& operator<<(std::ostream& o, const Msg& m) {
+    return o<<m.str();
+}
 
 /** Construct a message using operator << and append (file:line) */
 #define QPID_MSG(message) Msg() << message << " (" << __FILE__ << ":" << 
__LINE__ << ")"
-using namespace std;
-
 
 } // namespace qpid
 


Reply via email to