aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2016-01-27 14:07:14 +0000
committerHoward Chu <hyc@symas.com>2016-02-18 21:31:30 +0000
commit11d555cebe70053479f8c7ce8a8a993821b634b9 (patch)
tree14b642bde0a7bca1e4a25518ffb12532a92e04ee /contrib/epee
parentstd::condvar is broken on Win32 with gcc/g++ 4.8 too (diff)
downloadmonero-11d555cebe70053479f8c7ce8a8a993821b634b9.tar.xz
Fix crash in std::map for connections_map
Use boost::unordered_map instead.
Diffstat (limited to 'contrib/epee')
-rw-r--r--contrib/epee/include/net/levin_protocol_handler_async.h3
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;