From 424d95e4579f5d0baceb8358aa4be347929ba33f Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 7 Dec 2007 10:41:53 +0000 Subject: Changed to use the get_pointer function for compatability with boost 1.33 and 1.34 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@602063 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SemanticState.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index 76775d03d5..cec0a21f67 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -33,6 +33,7 @@ #include "TxPublish.h" #include "qpid/framing/reply_exceptions.h" #include "qpid/log/Statement.h" +#include "qpid/ptr_map.h" #include #include @@ -53,6 +54,7 @@ using std::bind2nd; using namespace qpid::broker; using namespace qpid::framing; using namespace qpid::sys; +using namespace qpid::ptr_map; SemanticState::SemanticState(DeliveryAdapter& da, SessionState& ss) : session(ss), @@ -71,7 +73,7 @@ SemanticState::SemanticState(DeliveryAdapter& da, SessionState& ss) SemanticState::~SemanticState() { //cancel all consumers for (ConsumerImplMap::iterator i = consumers.begin(); i != consumers.end(); i++) { - cancel(*i); + cancel(*get_pointer(i)); } if (dtxBuffer.get()) { @@ -418,7 +420,7 @@ void SemanticState::ack(DeliveryId first, DeliveryId last, bool cumulative) void SemanticState::requestDispatch() { for (ConsumerImplMap::iterator i = consumers.begin(); i != consumers.end(); i++) { - requestDispatch(*i); + requestDispatch(*get_pointer(i)); } } -- cgit v1.2.1