Fix crash in std::map for connections_map
Use boost::unordered_map instead.
This commit is contained in:
parent
014f8868f2
commit
11d555cebe
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
#include <boost/unordered_map.hpp>
|
||||
#include <boost/interprocess/detail/atomic.hpp>
|
||||
#include <boost/smart_ptr/make_shared.hpp>
|
||||
|
||||
|
@ -52,7 +53,7 @@ class async_protocol_handler;
|
|||
template<class t_connection_context>
|
||||
class async_protocol_handler_config
|
||||
{
|
||||
typedef std::map<boost::uuids::uuid, async_protocol_handler<t_connection_context>* > connections_map;
|
||||
typedef boost::unordered_map<boost::uuids::uuid, async_protocol_handler<t_connection_context>* > connections_map;
|
||||
critical_section m_connects_lock;
|
||||
connections_map m_connects;
|
||||
|
||||
|
|
Loading…
Reference in a new issue