From ebecd60eb810246cfa682a1fbd72270aa9861f0b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 16 Dec 2014 18:57:19 +0000 Subject: 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. --- src/command_manager.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command_manager.hh') 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 #include #include @@ -88,7 +88,7 @@ private: CommandFlags flags; CommandCompleter completer; }; - using CommandMap = std::unordered_map; + using CommandMap = UnorderedMap; CommandMap m_commands; CommandMap::const_iterator find_command(const Context& context, -- cgit v1.2.3