I'm compiling using g++ for C++ 17. I have the following:
std::array<std::vector<int>, 2> v = {{ {1,2}, {3,4} }};
I don't understand why if I remove the double braces for the array it does not work anymore.
std::array<std::vector<int>, 2> v = { {1,2}, {3,4} }; // Does not compile
I understand how std::array works and the need for the double braces in general, but as I'm compiling for C++17 I expected brace elision to come into play.
Why is brace elision not applicable here?