summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-12-16 18:57:19 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-12-16 18:57:19 +0000
commitebecd60eb810246cfa682a1fbd72270aa9861f0b (patch)
tree0c5c707b68cb08fc93ace2433291deb8a52db5bc /src/command_manager.hh
parentdbd7bd41bbf39d1fd5736997122a4652c78ddc50 (diff)
Rework hashing, use a more extensible framework similar to n3876 proposal
std::hash specialization is a pain to work with, stop using that, and just specialize a 'size_t hash_value(const T&)' free function.
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index ca397a8f..90b583f9 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -9,8 +9,8 @@
#include "parameters_parser.hh"
#include "string.hh"
#include "utils.hh"
+#include "unordered_map.hh"
-#include <unordered_map>
#include <functional>
#include <initializer_list>
@@ -88,7 +88,7 @@ private:
CommandFlags flags;
CommandCompleter completer;
};
- using CommandMap = std::unordered_map<String, CommandDescriptor>;
+ using CommandMap = UnorderedMap<String, CommandDescriptor>;
CommandMap m_commands;
CommandMap::const_iterator find_command(const Context& context,