diff options
| author | Alan Conway <aconway@apache.org> | 2008-04-16 15:33:51 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-04-16 15:33:51 +0000 |
| commit | 775aa6924e2c432791fafd354751bb068129fe2e (patch) | |
| tree | 920584acaa99df0a6f8d55e53eefc9b38767e519 /cpp/src/qpid/amqp_0_10/Struct32.cpp | |
| parent | 79749f81fab85090506e236f8b625801291659a1 (diff) | |
| download | qpid-python-775aa6924e2c432791fafd354751bb068129fe2e.tar.gz | |
Fix encoding for sized structs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648724 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/amqp_0_10/Struct32.cpp')
| -rw-r--r-- | cpp/src/qpid/amqp_0_10/Struct32.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/qpid/amqp_0_10/Struct32.cpp b/cpp/src/qpid/amqp_0_10/Struct32.cpp index b36b118db3..541f02bcc4 100644 --- a/cpp/src/qpid/amqp_0_10/Struct32.cpp +++ b/cpp/src/qpid/amqp_0_10/Struct32.cpp @@ -23,6 +23,12 @@ namespace qpid { namespace amqp_0_10 { +Struct32::Struct32() { + // FIXME aconway 2008-04-16: this is only here to force a valid + // default-constructed Struct32 for serialize tests, clean up. + *this = in_place<message::MessageResumeResult>(); +} + std::ostream& operator<<(std::ostream& o, const Struct32& s) { return o << static_cast<const StructHolder&>(s); } |
