From e0e9b8bae4121baa78c09d0e12342d742b784bb0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 18 Aug 2017 07:45:38 +0700 Subject: [PATCH] Try to get make_array to compile with older compiler version --- src/meta.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/meta.hh b/src/meta.hh index 2a1c9d01..2126d4f4 100644 --- a/src/meta.hh +++ b/src/meta.hh @@ -25,17 +25,16 @@ struct Array }; template -constexpr Array make_array(T (&&data)[N], std::index_sequence) +constexpr Array make_array(const T (&data)[N], std::index_sequence) { static_assert(sizeof...(Indices) == N, "size mismatch"); return {{data[Indices]...}}; } template -constexpr Array make_array(T (&&data)[N]) +constexpr Array make_array(const T (&data)[N]) { - return make_array(std::forward(data), - std::make_index_sequence()); + return make_array(data, std::make_index_sequence()); } }