Commit 7e80c62c authored by Max Kellermann's avatar Max Kellermann

util/GenerateArray: use double curly braces for compatibility

parent 4038d852
......@@ -39,7 +39,10 @@ _GenerateArray(F &&f, std::index_sequence<I...>) noexcept
{
using T = decltype(f(0));
return std::array<T, N>{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<T, N>{{f(I)...}};
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment