summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/Connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/broker/Connection.h')
-rw-r--r--cpp/src/qpid/broker/Connection.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Connection.h b/cpp/src/qpid/broker/Connection.h
index b552267452..08beb0a3ea 100644
--- a/cpp/src/qpid/broker/Connection.h
+++ b/cpp/src/qpid/broker/Connection.h
@@ -38,6 +38,9 @@
#include "qpid/Exception.h"
#include "BrokerChannel.h"
#include "ConnectionAdapter.h"
+#include "SessionAdapter.h"
+
+#include <boost/optional.hpp>
namespace qpid {
namespace broker {
@@ -82,8 +85,8 @@ class Connection : public sys::ConnectionInputHandler,
void closed();
private:
- typedef std::map<framing::ChannelId, framing::FrameHandler::Chains> ChannelMap;
-
+ // Use boost::optional to allow default-constructed uninitialized entries in the map.
+ typedef std::map<framing::ChannelId, boost::optional<SessionAdapter> >ChannelMap;
typedef std::vector<Queue::shared_ptr>::iterator queue_iterator;
framing::ProtocolVersion version;