for (auto iter : list)
{
if (条件满足)
{
list.erase(iter);
break;
}
}
error C2664: “std::_List_iterator<std::_List_val<std::_List_simple_types<SThriftMsg>>> std::list<SThriftMsg,std::allocator<_Ty>>::erase(std::_List_const_iterator<std::_List_val<std::_List_simple_types<_Ty>>>,std::_List_const_iterator<std::_List_val<std::_List_simple_types<_Ty>>>)”: 无法将参数 1 从“SThriftMsg”转换为“std::_List_const_iterator<std::_List_val<std::_List_simple_types<SThriftMsg>>>”
1> with
1> [
1> _Ty=SThriftMsg
1> ]
转载于:https://blog.51cto.com/fengyuzaitu/2397408