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 | 0a432d6035a95b033e635eda93e973af7baf4d03 (patch) | |
tree | fc475dd611ac44ba895e055d681a454d11ceb1b3 | |
parent | 2c96b68eaf54b9a039e21856ab60ee4f41df473e (diff) | |
download | qpid-python-0a432d6035a95b033e635eda93e973af7baf4d03.tar.gz |
Inlined functions that should be inline.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@565924 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/qpid/Msg.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cpp/src/qpid/Msg.h b/cpp/src/qpid/Msg.h index f29235f1ba..702bb0a10e 100644 --- a/cpp/src/qpid/Msg.h +++ b/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 |