diff options
Diffstat (limited to 'cpp/src/qpid/broker/SessionManager.h')
-rw-r--r-- | cpp/src/qpid/broker/SessionManager.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/SessionManager.h b/cpp/src/qpid/broker/SessionManager.h index 7e8bd18f57..cc2190c2d1 100644 --- a/cpp/src/qpid/broker/SessionManager.h +++ b/cpp/src/qpid/broker/SessionManager.h @@ -27,13 +27,14 @@ #include <qpid/sys/Mutex.h> #include <qpid/RefCounted.h> -#include <boost/noncopyable.hpp> -#include <boost/ptr_container/ptr_vector.hpp> - #include <set> #include <vector> #include <memory> +#include <boost/noncopyable.hpp> +#include <boost/ptr_container/ptr_vector.hpp> +#include <boost/intrusive_ptr.hpp> + namespace qpid { namespace broker { @@ -70,12 +71,12 @@ class SessionManager : private boost::noncopyable { std::auto_ptr<SessionState> resume(const framing::Uuid&); /** Add an Observer. */ - void add(const intrusive_ptr<Observer>&); + void add(const boost::intrusive_ptr<Observer>&); private: typedef boost::ptr_vector<SessionState> Suspended; typedef std::set<framing::Uuid> Active; - typedef std::vector<intrusive_ptr<Observer> > Observers; + typedef std::vector<boost::intrusive_ptr<Observer> > Observers; void erase(const framing::Uuid&); void eraseExpired(); |