I wondered that such simple program can not be compiled with gcc, clang and msvc:
#include <array>
#include <vector>
int main()
{
std::vector<std::array<int, 3>> v;
v.emplace_back( 1, 2, 3 );
return 0;
}
Why do std::array can not be constructed from sequence of values? It looks pretty easy to write custom ctor with variadic universal references to effectively construct std::array from values.
I think it would be nice if std::array was considered a POD-structure.