diff options
| author | Alan Conway <aconway@apache.org> | 2007-08-14 21:35:09 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-08-14 21:35:09 +0000 |
| commit | 1e2ed8176afafcc0190e0a5fd1c3c65389248b99 (patch) | |
| tree | ab2315fdcd238baf4969eec4e719fcbe49010232 /qpid/cpp/src | |
| parent | 5ab8eeb762b885023740e946c3b774b317f3f326 (diff) | |
| download | qpid-python-1e2ed8176afafcc0190e0a5fd1c3c65389248b99.tar.gz | |
Inlined functions that should be inline.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@565924 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/Msg.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/qpid/cpp/src/qpid/Msg.h b/qpid/cpp/src/qpid/Msg.h index f29235f1ba..702bb0a10e 100644 --- a/qpid/cpp/src/qpid/Msg.h +++ b/qpid/cpp/src/qpid/Msg.h @@ -45,13 +45,16 @@ struct Msg { 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 |
