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/input_handler.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index ea6da4b0..ae6ac83b 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -9,12 +9,11 @@ #include "normal.hh" #include "regex.hh" #include "register_manager.hh" +#include "unordered_map.hh" #include "user_interface.hh" #include "utf8.hh" #include "window.hh" -#include - namespace Kakoune { @@ -736,10 +735,10 @@ private: bool m_autoshowcompl; Mode m_mode = Mode::Default; - static std::unordered_map> ms_history; + static UnorderedMap> ms_history; std::vector::iterator m_history_it; }; -std::unordered_map> Prompt::ms_history; +UnorderedMap> Prompt::ms_history; class NextKey : public InputMode { -- cgit v1.2.3