diff --git a/src/buffer.hh b/src/buffer.hh index e99d4725..ab9d3248 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -25,7 +25,7 @@ enum class EolFormat constexpr auto enum_desc(Meta::Type) { - return make_array, 2>({ + return make_array>({ { EolFormat::Lf, "lf" }, { EolFormat::Crlf, "crlf" }, }); @@ -39,7 +39,7 @@ enum class ByteOrderMark constexpr auto enum_desc(Meta::Type) { - return make_array, 2>({ + return make_array>({ { ByteOrderMark::None, "none" }, { ByteOrderMark::Utf8, "utf8" }, }); diff --git a/src/client.hh b/src/client.hh index fd1cd1a6..b7351626 100644 --- a/src/client.hh +++ b/src/client.hh @@ -140,7 +140,7 @@ enum class Autoreload constexpr auto enum_desc(Meta::Type) { - return make_array, 5>({ + return make_array>({ { Autoreload::Yes, "yes" }, { Autoreload::No, "no" }, { Autoreload::Ask, "ask" }, diff --git a/src/file.hh b/src/file.hh index 5264616b..a0e4e855 100644 --- a/src/file.hh +++ b/src/file.hh @@ -60,7 +60,7 @@ enum class WriteMethod }; constexpr auto enum_desc(Meta::Type) { - return make_array, 2>({ + return make_array>({ { WriteMethod::Overwrite, "overwrite" }, { WriteMethod::Replace, "replace" }, }); diff --git a/src/hook_manager.hh b/src/hook_manager.hh index 302e3e14..0132b951 100644 --- a/src/hook_manager.hh +++ b/src/hook_manager.hh @@ -58,7 +58,7 @@ enum class Hook constexpr auto enum_desc(Meta::Type) { - return make_array, 38>({ + return make_array>({ {Hook::BufCreate, "BufCreate"}, {Hook::BufNewFile, "BufNewFile"}, {Hook::BufOpenFile, "BufOpenFile"}, diff --git a/src/input_handler.hh b/src/input_handler.hh index 3304b67e..62c8ca65 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -148,7 +148,7 @@ constexpr bool with_bit_ops(Meta::Type) { return true; } constexpr auto enum_desc(Meta::Type) { - return make_array, 3>({ + return make_array>({ { AutoInfo::Command, "command"}, { AutoInfo::OnKey, "onkey"}, { AutoInfo::Normal, "normal" } @@ -165,7 +165,7 @@ constexpr bool with_bit_ops(Meta::Type) { return true; } constexpr auto enum_desc(Meta::Type) { - return make_array, 3>({ + return make_array>({ { AutoComplete::Insert, "insert"}, { AutoComplete::Prompt, "prompt" } }); diff --git a/src/normal.cc b/src/normal.cc index b4bb0334..34352151 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -40,7 +40,7 @@ enum class SelectMode constexpr auto enum_desc(Meta::Type) { - return make_array, 3>({ + return make_array>({ { SelectMode::Replace, "replace" }, { SelectMode::Extend, "extend" }, { SelectMode::Append, "append" }, diff --git a/src/option.hh b/src/option.hh index 3c114b30..db8be775 100644 --- a/src/option.hh +++ b/src/option.hh @@ -77,7 +77,7 @@ constexpr bool with_bit_ops(Meta::Type) { return true; } constexpr auto enum_desc(Meta::Type) { - return make_array, 5>({ + return make_array>({ { DebugFlags::Hooks, "hooks" }, { DebugFlags::Shell, "shell" }, { DebugFlags::Profile, "profile" }, diff --git a/src/selectors.hh b/src/selectors.hh index 7ff06a6b..fc71cd42 100644 --- a/src/selectors.hh +++ b/src/selectors.hh @@ -65,7 +65,7 @@ constexpr bool with_bit_ops(Meta::Type) { return true; } constexpr auto enum_desc(Meta::Type) { - return make_array, 3>({ + return make_array>({ { ObjectFlags::ToBegin, "to_begin" }, { ObjectFlags::ToEnd, "to_end" }, { ObjectFlags::Inner, "inner" }, diff --git a/src/string_utils.hh b/src/string_utils.hh index 9c31d767..52dd719c 100644 --- a/src/string_utils.hh +++ b/src/string_utils.hh @@ -147,7 +147,7 @@ enum class Quoting constexpr auto enum_desc(Meta::Type) { - return make_array, 3>({ + return make_array>({ { Quoting::Raw, "raw" }, { Quoting::Kakoune, "kakoune" }, { Quoting::Shell, "shell" }