List Initialized Vector is having error messages

vector<int> vec1 {2, 4, 6, 8, 10, 12, 14, 16, 18, 20};

This code worked perfectly fine in Xcode earlier today, but when I got home on visual studio 2012 express it is having an error. It's saying that the local function definitions are illegal and has a red mark under the '{' only? Whatever that means.
Last edited on
This is fixed in Visual Studio 2013.
I'll download it then. Thanks for the fast response. Much appreciated.
Topic archived. No new replies allowed.