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