Feel like I'm missing something painfully glaring, but I copied the code right off the book.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using std::cout; using std::endl;
for (auto &i : v)
i *= i;
for (auto i : v)
cout << i << " ";
cout << endl;
//Error appears right after v.
Initializer lists was added in 11.0 nov'12. Even the update page explicitly mentions this feature. I changed my project's Platform Toolset to the nov'12 update (following the instructions on the download page), but still doesn't seem to work.
Then again I'm still a scrub on all of this, so I'm not sure what other options are there to enable. Yeah Disch noticed that from the Apache list.
Code::blocks works though. I suppose GCC and Clang are the better compilers? (Pardon me if that isn't their right terminology)