VS2012以上才完整支持C++11。来自C++11 Features (Modern C++)的一段话:
Visual C++ 2010 implemented many features in the C++0x core language specification, which was the precursor to C++11, and Visual C++ in Visual Studio 2012 expands on that to include many C++11 features.
在VS2010里你可以这么初始化(不过我想这方法你应该知道):
int a[5] = {1,2,3,4,5};
vectorv(a, a+5);