有什么方法可以限制已安装的 docker 卷可以增长到的大小吗?我正在考虑这样做,就像这里所做的那样:How to set limit on directory size in Linux? 但我觉得这对于我的需要来说有点太复杂了。
我试图在向量中插入一个元素,但似乎我做错了.
这是我声明向量的地方:
std::vector<Dice> dicearray;
这是抛出错误的行:
dicearray.insert(dicearray.size()-1 ,Dice());
这些是抛出的错误:
Error (active) no instance of overloaded function "std::vector<_Ty, _Alloc>::insert [with _Ty=Dice, _Alloc=std::allocator<Dice>]" matches the argument list ConsoleApplication3 c:\Users\Miguel\Documents\Visual Studio 2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.cpp 60
和
Error C2664 'std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Dice>>> std::vector<Dice,std::allocator<_Ty>>::insert(std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<Dice>>>,unsigned int,const _Ty &)': cannot convert argument 1 from 'unsigned int' to 'std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<Dice>>>' ConsoleApplication3 c:\users\miguel\documents\visual studio 2015\projects\consoleapplication3\consoleapplication3\consoleapplication3.cpp 60
知道为什么会这样吗?