qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r602063 - /incubator/qpid/trunk/qpid/cpp/src/qpid/broker/SemanticState.cpp
Date Fri, 07 Dec 2007 10:41:54 GMT
Author: gsim
Date: Fri Dec  7 02:41:53 2007
New Revision: 602063

URL: http://svn.apache.org/viewvc?rev=602063&view=rev
Log:
Changed to use the get_pointer function for compatability with boost 1.33 and 1.34


Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/broker/SemanticState.cpp

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/broker/SemanticState.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/broker/SemanticState.cpp?rev=602063&r1=602062&r2=602063&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/broker/SemanticState.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/broker/SemanticState.cpp Fri Dec  7 02:41:53 2007
@@ -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 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() {
     //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::requestDispatch()
 {    
     for (ConsumerImplMap::iterator i = consumers.begin(); i != consumers.end(); i++) {
-        requestDispatch(*i);
+        requestDispatch(*get_pointer(i));
     }
 }
 



Mime
View raw message