diff options
author | Howard Chu <hyc@symas.com> | 2016-01-27 14:07:14 +0000 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-02-18 21:31:30 +0000 |
commit | 11d555cebe70053479f8c7ce8a8a993821b634b9 (patch) | |
tree | 14b642bde0a7bca1e4a25518ffb12532a92e04ee /contrib/epee/include/net | |
parent | std::condvar is broken on Win32 with gcc/g++ 4.8 too (diff) | |
download | monero-11d555cebe70053479f8c7ce8a8a993821b634b9.tar.xz |
Fix crash in std::map for connections_map
Use boost::unordered_map instead.
Diffstat (limited to 'contrib/epee/include/net')
-rw-r--r-- | contrib/epee/include/net/levin_protocol_handler_async.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h index a7fbffb4b..7331faa35 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -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; |