From 4237858c542e72ced9e1abcff433692e1fd3b1af Mon Sep 17 00:00:00 2001 From: "Charles E. Rolke" Date: Mon, 21 Apr 2014 19:07:04 +0000 Subject: QPID-5663: [C++ Messaging] Windows AMQP 1.0 map_receiver fails MSVC's generated copy constructor for DataBuilder failed to copy the map correctly. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1588966 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp b/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp index 6b9c21ea92..2ca8323ba2 100644 --- a/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp +++ b/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp @@ -229,7 +229,7 @@ void EncodedMessage::getBody(std::string& raw, qpid::types::Variant& c) const c = builder.getList(); raw.assign(body.data, body.size); } else if (bodyType == qpid::amqp::typecodes::MAP_NAME) { - qpid::amqp::DataBuilder builder = qpid::amqp::DataBuilder(qpid::types::Variant::Map()); + qpid::amqp::DataBuilder builder(new qpid::types::Variant::Map()); qpid::amqp::Decoder decoder(body.data, body.size); decoder.read(builder); c = builder.getValue().asMap(); -- cgit v1.2.1