C11 for自动推导迭代器调用erase异常记录
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> ]
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。