Use owner_less for ordering of connection_hdl (see https://github.com/zaphoyd/websocketpp/issues/457)

This commit is contained in:
lotodore
2015-08-18 20:49:06 +02:00
parent d0cce129dd
commit 1d34288a91
+3 -1
View File
@@ -37,6 +37,8 @@
#include <net/serveracceptinterface.h>
#include <net/serverlobbythread.h>
#include <boost/smart_ptr/owner_less.hpp>
class ServerAcceptWebHelper : public ServerAcceptInterface
{
public:
@@ -50,7 +52,7 @@ public:
protected:
typedef std::map<websocketpp::connection_hdl, boost::weak_ptr<SessionData> > SessionMap;
typedef std::map<websocketpp::connection_hdl, boost::weak_ptr<SessionData>, boost::owner_less<websocketpp::connection_hdl> > SessionMap;
bool validate(websocketpp::connection_hdl hdl);
void on_open(websocketpp::connection_hdl hdl);