C++中奇怪的类型不匹配

Mat*_*ser 2 c++ types const

我在这里需要一些帮助,这种类型的不匹配怎么可能呢?当我替换所有内容时,它是完全相同的类型,包括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)

Oli*_*rth 6

就是_Tp这样const,在这种情况下_Tp是一个指针.因此,替换const _Tp意志实际上会导致Polygon3D *constconst Polygon3D *匹配.