从 windows 到 linux(3):std::list::erase 不能用 const_iterator
来源:互联网 发布:网页下载软件 编辑:程序博客网 时间:2024/06/04 19:14
../src/map_server/Team/RandomTeamManager.cpp: In member function ‘void RandomTeamManager::_HandleConfirmTeam(uint32, bool)’:../src/map_server/Team/RandomTeamManager.cpp:138: error: no matching function for call to ‘std::list<RandomQueueEntry, std::allocator<RandomQueueEntry> >::erase(std::_List_const_iterator<RandomQueueEntry>&)’/usr/include/c++/4.4/bits/list.tcc:107: note: candidates are: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>) [with _Tp = RandomQueueEntry, _Alloc = std::allocator<RandomQueueEntry>]/usr/include/c++/4.4/bits/stl_list.h:1092: note: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>, std::_List_iterator<_Tp>) [with _Tp = RandomQueueEntry, _Alloc = std::allocator<RandomQueueEntry>]
改成使用 iterator 删除,OK
0 0
- 从 windows 到 linux(3):std::list::erase 不能用 const_iterator
- 从 windows 到 linux(1):g++不能用函数内定义的类型做模板参数
- std::list<T> , std::vector<T> erase
- std::set, std::list, std::vector在erase的区别
- 从linux到windows
- 从Windows到Linux
- windows tasklist不能用
- 从Windows到Linux(一)
- 从Windows到Linux(二)
- 从Windows移植到Linux
- 开发:从windows到linux
- pin 从windows 到 linux
- Windows下命令行不能用
- list-erase
- std::vector::erase
- 关于std::map erase
- 详解std::map::erase
- std::vector::erase()
- c++builder error:[Linker Error] Unresolved external 'GetAdaptersInfo' referenced from……
- Eclipse使用技巧总结
- js和控件(不错的博客)
- 使用springmvc 进行文件上传时提示 NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
- Visual Studio 2010安装Entity Framework方法
- 从 windows 到 linux(3):std::list::erase 不能用 const_iterator
- 【小超_Android】AndroidManifest.xml文件完全解析
- C语言--基本数据类型1
- 线程中释放锁的方式
- 设计模式原则
- python读写不同编码txt文件
- Apple Watch人机交互指南:UI设计基础--颜色、字体
- android开发框架UltimateAndroid
- 使用VS连接SQLServe时提示未能加载文件或程序集“System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKey