summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-08-18 08:15:18 +0700
committerMaxime Coste <mawww@kakoune.org>2017-08-18 08:15:18 +0700
commit65bac9c027828a27c0e2fd9c2f6ace00ad5b8df2 (patch)
treeaf8d090a30012c96ef7c28b6e5c485c544441576 /src/buffer.hh
parente0e9b8bae4121baa78c09d0e12342d742b784bb0 (diff)
Respecify EnumDescs array sizes manually to workaround clang-3.6 bug
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 4fa42d56..41b29b77 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -23,7 +23,7 @@ enum class EolFormat
constexpr auto enum_desc(Meta::Type<EolFormat>)
{
- return make_array<EnumDesc<EolFormat>>({
+ return make_array<EnumDesc<EolFormat>, 2>({
{ EolFormat::Lf, "lf" },
{ EolFormat::Crlf, "crlf" },
});
@@ -37,7 +37,7 @@ enum class ByteOrderMark
constexpr auto enum_desc(Meta::Type<ByteOrderMark>)
{
- return make_array<EnumDesc<ByteOrderMark>>({
+ return make_array<EnumDesc<ByteOrderMark>, 2>({
{ ByteOrderMark::None, "none" },
{ ByteOrderMark::Utf8, "utf8" },
});