diff options
author | Gordon Sim <gsim@apache.org> | 2007-12-07 10:41:53 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-12-07 10:41:53 +0000 |
commit | 424d95e4579f5d0baceb8358aa4be347929ba33f (patch) | |
tree | eb188c85e79382f8545389cbb2d5a504eb0c6187 /cpp | |
parent | 3136f12364c32adeba0e65b69a7c263371c0a812 (diff) | |
download | qpid-python-424d95e4579f5d0baceb8358aa4be347929ba33f.tar.gz |
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
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/broker/SemanticState.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <boost/bind.hpp> #include <boost/format.hpp> @@ -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)); } } |