我有一些我在Ubuntu上开发的代码,现在我试图在Windows 7上编译它(MS VS 2010).
vector<float> tmp;
....
tmp = {3.0,4.5,9.4};
Run Code Online (Sandbox Code Playgroud)
这给了我语法错误
error C2143: syntax error : missing ';' before '{'
Run Code Online (Sandbox Code Playgroud)
这是因为Visual Studio不支持此功能吗?或者我应该在属性中启用一些开关.我将"Platform Toolset"属性设置为"v100".
谢谢.