Remove explicit sizes from make_array calls

This commit is contained in:
Maxime Coste 2019-10-17 22:48:22 +11:00
parent a5d662f7fe
commit 3c34de7fe7
9 changed files with 11 additions and 11 deletions

View File

@ -25,7 +25,7 @@ enum class EolFormat
constexpr auto enum_desc(Meta::Type<EolFormat>)
{
return make_array<EnumDesc<EolFormat>, 2>({
return make_array<EnumDesc<EolFormat>>({
{ EolFormat::Lf, "lf" },
{ EolFormat::Crlf, "crlf" },
});
@ -39,7 +39,7 @@ enum class ByteOrderMark
constexpr auto enum_desc(Meta::Type<ByteOrderMark>)
{
return make_array<EnumDesc<ByteOrderMark>, 2>({
return make_array<EnumDesc<ByteOrderMark>>({
{ ByteOrderMark::None, "none" },
{ ByteOrderMark::Utf8, "utf8" },
});

View File

@ -140,7 +140,7 @@ enum class Autoreload
constexpr auto enum_desc(Meta::Type<Autoreload>)
{
return make_array<EnumDesc<Autoreload>, 5>({
return make_array<EnumDesc<Autoreload>>({
{ Autoreload::Yes, "yes" },
{ Autoreload::No, "no" },
{ Autoreload::Ask, "ask" },

View File

@ -60,7 +60,7 @@ enum class WriteMethod
};
constexpr auto enum_desc(Meta::Type<WriteMethod>)
{
return make_array<EnumDesc<WriteMethod>, 2>({
return make_array<EnumDesc<WriteMethod>>({
{ WriteMethod::Overwrite, "overwrite" },
{ WriteMethod::Replace, "replace" },
});

View File

@ -58,7 +58,7 @@ enum class Hook
constexpr auto enum_desc(Meta::Type<Hook>)
{
return make_array<EnumDesc<Hook>, 38>({
return make_array<EnumDesc<Hook>>({
{Hook::BufCreate, "BufCreate"},
{Hook::BufNewFile, "BufNewFile"},
{Hook::BufOpenFile, "BufOpenFile"},

View File

@ -148,7 +148,7 @@ constexpr bool with_bit_ops(Meta::Type<AutoInfo>) { return true; }
constexpr auto enum_desc(Meta::Type<AutoInfo>)
{
return make_array<EnumDesc<AutoInfo>, 3>({
return make_array<EnumDesc<AutoInfo>>({
{ AutoInfo::Command, "command"},
{ AutoInfo::OnKey, "onkey"},
{ AutoInfo::Normal, "normal" }
@ -165,7 +165,7 @@ constexpr bool with_bit_ops(Meta::Type<AutoComplete>) { return true; }
constexpr auto enum_desc(Meta::Type<AutoComplete>)
{
return make_array<EnumDesc<AutoComplete>, 3>({
return make_array<EnumDesc<AutoComplete>>({
{ AutoComplete::Insert, "insert"},
{ AutoComplete::Prompt, "prompt" }
});

View File

@ -40,7 +40,7 @@ enum class SelectMode
constexpr auto enum_desc(Meta::Type<SelectMode>)
{
return make_array<EnumDesc<SelectMode>, 3>({
return make_array<EnumDesc<SelectMode>>({
{ SelectMode::Replace, "replace" },
{ SelectMode::Extend, "extend" },
{ SelectMode::Append, "append" },

View File

@ -77,7 +77,7 @@ constexpr bool with_bit_ops(Meta::Type<DebugFlags>) { return true; }
constexpr auto enum_desc(Meta::Type<DebugFlags>)
{
return make_array<EnumDesc<DebugFlags>, 5>({
return make_array<EnumDesc<DebugFlags>>({
{ DebugFlags::Hooks, "hooks" },
{ DebugFlags::Shell, "shell" },
{ DebugFlags::Profile, "profile" },

View File

@ -65,7 +65,7 @@ constexpr bool with_bit_ops(Meta::Type<ObjectFlags>) { return true; }
constexpr auto enum_desc(Meta::Type<ObjectFlags>)
{
return make_array<EnumDesc<ObjectFlags>, 3>({
return make_array<EnumDesc<ObjectFlags>>({
{ ObjectFlags::ToBegin, "to_begin" },
{ ObjectFlags::ToEnd, "to_end" },
{ ObjectFlags::Inner, "inner" },

View File

@ -147,7 +147,7 @@ enum class Quoting
constexpr auto enum_desc(Meta::Type<Quoting>)
{
return make_array<EnumDesc<Quoting>, 3>({
return make_array<EnumDesc<Quoting>>({
{ Quoting::Raw, "raw" },
{ Quoting::Kakoune, "kakoune" },
{ Quoting::Shell, "shell" }