。。。破c++

cosechy 2007-12-25 12:46:35
我是20号晚上知道的这个竞赛
21号决定写一下程序
然后开始现学tbb和模拟退火
所以时间比较紧
24号晚上把代码基本写出来了,时间也不多了
然后编译,出了个错误

错误: 将 ‘const tbb::concurrent_vector<std::vector<std::pair<long int, long int>, std::allocator<std::pair<long int, long int> > >, tbb::cache_aligned_allocator<std::vector<std::pair<long int, long int>, std::allocator<std::pair<long int, long int> > > > >’ 作为 ‘size_t tbb::concurrent_vector<T, A>::push_back(const T&) [with T = std::vector<std::pair<long int, long int>, std::allocator<std::pair<long int, long int> > >, A = tbb::cache_aligned_allocator<std::vector<std::pair<long int, long int>, std::allocator<std::pair<long int, long int> > > >]’ 的 ‘this’ 实参时丢弃了类型限定

。。。
大概过了一个小时
我才明白这个错误什么意思
然后还要以对“面对对象”很侮辱的方法给改好
...全文
209 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
guajunjie 2007-12-25
  • 打赏
  • 举报
回复
这个也是
celineshi 2007-12-25
  • 打赏
  • 举报
回复
PF~~

567

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧