读书人

vc转10 迭代器出错 如何改

发布时间: 2013-08-01 15:23:18 作者: rapoo

vc转10 迭代器出错 怎么改


points.erase(&points.at(j));
10IntelliSense: 没有与参数列表匹配的 重载函数 "std::vector<_Ty, _Ax>::erase [其中 _Ty=CENTER_POINT, _Ax=std::allocator<CENTER_POINT>]" 实例g:\源代码\codefans.net\cell\cellview.cpp1648
Iterator
[解决办法]
points.erase(points.begin()+j);

读书人网 >C++

热点推荐