diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-12-16 18:57:19 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-12-16 18:57:19 +0000 |
| commit | ebecd60eb810246cfa682a1fbd72270aa9861f0b (patch) | |
| tree | 0c5c707b68cb08fc93ace2433291deb8a52db5bc /src/keymap_manager.cc | |
| parent | dbd7bd41bbf39d1fd5736997122a4652c78ddc50 (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/keymap_manager.cc')
| -rw-r--r-- | src/keymap_manager.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/keymap_manager.cc b/src/keymap_manager.cc index 0d376a1b..74323a84 100644 --- a/src/keymap_manager.cc +++ b/src/keymap_manager.cc @@ -1,19 +1,7 @@ #include "keymap_manager.hh" #include "memoryview.hh" - -namespace std -{ - -template<> struct hash<Kakoune::KeymapMode> -{ - size_t operator()(Kakoune::KeymapMode val) const - { - return hash<int>{}((int)val); - } -}; - -} +#include "assert.hh" namespace Kakoune { |
