I have this code:
#include <array>
int main(int, char **argv)
{
std::array<int, 3> a = {1,2,3};
}
This compiles fine (-std=c++11) , but if you include -Wall it gives this warning that I don't understand:
clang_pp_error.cpp:5:28: warning: suggest braces around initialization of subobject [-Wmissing-braces]
std::array<int, 3> a = {1,2,3};
^~~~~
{ }