请教 VC++ error C2678 错误
VS2008下编译VC,在编译如下代码时出现C2678错误
a.h文件
class ClassA
{
....声明A类
}
typedef std::vector<ClassA> classArray;
ClassArray m_nClassArray;
a.cpp文件
void fun(const ClassA& classA)
{
classArray::iterator it;
for( it = m_nClassArray.begin(); it!= m_nClassArray.end(); it++ )
{
if(it == &classA)
{
continue;
}
}
}
编译错误
error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::_Vector_iterator<_Ty,_Alloc>' (or there is no acceptable conversion)
求高手!!!