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 753a593523..6b111e1f9e 100644 --- a/cpp/src/qpid/framing/StructHelper.h +++ b/cpp/src/qpid/framing/StructHelper.h @@ -44,7 +44,7 @@ public: rbuffer.getRawData(data, size); } - template <class T> void decode(T t, std::string& data) { + template <class T> void decode(T& t, const std::string& data) { char* bytes = static_cast<char*>(::alloca(data.length())); Buffer wbuffer(bytes, data.length()); wbuffer.putRawData(data); |