From 6920d8261ca0cdbb7e547a756a32dfd067cd15bc Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 24 Oct 2006 13:29:05 +0000 Subject: QPID-52: use of tr1 and unordered_map break build or RHEL4. Replaced unordered_map with std::map. Use boost::shared_ptr instead of std::tr1::shared_ptr. Since we're using boost for other things now anyway it's simpler & more portable. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@467329 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Message.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'cpp/src/qpid/broker/Message.cpp') diff --git a/cpp/src/qpid/broker/Message.cpp b/cpp/src/qpid/broker/Message.cpp index 53cfe4ee43..b5292ef043 100644 --- a/cpp/src/qpid/broker/Message.cpp +++ b/cpp/src/qpid/broker/Message.cpp @@ -20,12 +20,11 @@ #include "qpid/broker/ExchangeRegistry.h" #include -using namespace std::tr1;//for *_pointer_cast methods +using namespace boost; using namespace qpid::broker; using namespace qpid::framing; using namespace qpid::concurrent; - Message::Message(const ConnectionToken* const _publisher, const string& _exchange, const string& _routingKey, bool _mandatory, bool _immediate) : publisher(_publisher), @@ -34,12 +33,9 @@ Message::Message(const ConnectionToken* const _publisher, mandatory(_mandatory), immediate(_immediate), redelivered(false), - size(0){ + size(0) {} -} - -Message::~Message(){ -} +Message::~Message(){} void Message::setHeader(AMQHeaderBody::shared_ptr _header){ this->header = _header; @@ -61,7 +57,6 @@ void Message::redeliver(){ void Message::deliver(OutputHandler* out, int channel, const string& consumerTag, u_int64_t deliveryTag, u_int32_t framesize){ - out->send(new AMQFrame(channel, new BasicDeliverBody(consumerTag, deliveryTag, redelivered, exchange, routingKey))); sendContent(out, channel, framesize); } -- cgit v1.2.1