我在这里需要一些帮助,这种类型的不匹配怎么可能呢?当我替换所有内容时,它是完全相同的类型,包括constness.
cgVertex3D.cpp:33: error: no matching function for call to
std::vector<Polygon3D*, std::allocator<Polygon3D*> >::push_back(const Polygon3D*&)
/usr/include/c++/4.4/bits/stl_vector.h:733:
note: candidates are:
void std::vector<_Tp, _Alloc>::push_back(const _Tp&)
[with _Tp = Polygon3D*, _Alloc = std::allocator<Polygon3D*>]
<near match>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
231 次 |
| 最近记录: |