我有以下代码不能用 vc++ 2013 编译。它是编译器错误吗?
class Test
{
public:
Test() :
mTestBuff{ 1, 2, 3, 4 }
{
}
private:
const vector< int > mTestBuff;
};
error C2661: 'std::vector<int,std::allocator<_Ty>>::vector' : no overloaded function takes 4 arguments
这与 GCC 4.8 和 MinGW 编译得很好。我能做些什么来消除编译错误?