Disable constexpr keymap as it breaks compilation with gcc 5

This commit is contained in:
Maxime Coste 2017-10-20 19:12:21 +08:00
parent f76535613e
commit d6cb10d693

View File

@ -1944,9 +1944,9 @@ void force_redraw(Context& context, NormalParams)
}
template<typename T, MemoryDomain domain>
using KeymapBackend = ConstexprVector<T, 1024>;
using KeymapBackend = Vector<T, domain>;
static constexpr HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend> keymap = {
static const HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend> keymap = {
{ {'h'}, {"move left", move<CharCount, Backward>} },
{ {'j'}, {"move down", move<LineCount, Forward>} },
{ {'k'}, {"move up", move<LineCount, Backward>} },