How to use aggregate initialization as the following line gives me error (expected ;
)
std::array<int, 5> i_array1{ {3, 4, 5, 1, 2} };
However I am able to compile following line of code
std::array<int, 5> a2 = {3, 2, 1,10,12};
I am trying to getting used to new array container. I am using Visual Studio 2012 Ultimate. Looking for any help. Regards