diff --git a/src/util/GenerateArray.hxx b/src/util/GenerateArray.hxx index 049653650..b69658421 100644 --- a/src/util/GenerateArray.hxx +++ b/src/util/GenerateArray.hxx @@ -39,7 +39,10 @@ _GenerateArray(F &&f, std::index_sequence) noexcept { using T = decltype(f(0)); - return std::array{f(I)...}; + /* double curly braces for compatibility with older compilers + which are not 100% C++17 compliant (e.g. Apple xcode + 9.4) */ + return std::array{{f(I)...}}; } /**