。。。破c++
我是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’ 实参时丢弃了类型限定
。。。
大概过了一个小时
我才明白这个错误什么意思
然后还要以对“面对对象”很侮辱的方法给改好