diff options
Diffstat (limited to 'cpp/include/qpid/framing/StructHelper.h')
-rw-r--r-- | cpp/include/qpid/framing/StructHelper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/include/qpid/framing/StructHelper.h b/cpp/include/qpid/framing/StructHelper.h index 21f9b91fa9..fe2fa64ce7 100644 --- a/cpp/include/qpid/framing/StructHelper.h +++ b/cpp/include/qpid/framing/StructHelper.h @@ -34,7 +34,7 @@ class QPID_COMMON_CLASS_EXTERN StructHelper { public: - template <class T> void encode(const T t, std::string& data) { + template <class T> void encode(const T& t, std::string& data) { uint32_t size = t.bodySize() + 2/*type*/; data.resize(size); Buffer wbuffer(const_cast<char*>(data.data()), size); |