summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/PreviewSessionManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/broker/PreviewSessionManager.h')
-rw-r--r--cpp/src/qpid/broker/PreviewSessionManager.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/qpid/broker/PreviewSessionManager.h b/cpp/src/qpid/broker/PreviewSessionManager.h
index 65ca49ec89..9bc6bc5bbc 100644
--- a/cpp/src/qpid/broker/PreviewSessionManager.h
+++ b/cpp/src/qpid/broker/PreviewSessionManager.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 PreviewSessionManager : private boost::noncopyable {
std::auto_ptr<PreviewSessionState> 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<PreviewSessionState> 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();