There is a small misprint, which should appear on the
books' errata page, but it's not there yet.
I just tried the following code in Visual C++ 11 Beta and it works correctly:
Code:
#include <iostream>
#include <array>
using namespace std;
int main()
{
array<int, 3> arr = {9, 8, 7};
cout << "Array size = " << arr.size() << endl;
for (auto i : arr)
cout << i << endl;
return 0;
}
Is this piece of code giving an error when you try it?