我有一个向量:
std::vector<int> graphPred(tot_lines);
我设置为各种值,但是当输入完成后,我想消除我尝试过的空单元格:
graphPred.erase(std::remove_if(graphPred.begin(), graphPred.end(),
[](const int graphPred){return graphPred.empty();}),
graphPred.end());
但编译器抱怨“表达式必须是类类型”我的语法或实现目标的其他方式有问题吗?