对于 向量类的错误vector
比如error C2440: 'type cast' : cannot convert from 'std::_Vector_iterator<_Ty,_Alloc>' to 'cvpoint*'
这是由于vc6.0和vs2005不同的编译规则引起的,一般在vc6.0中可以通过的,在vs2005就会出现这样的错误,解决办法:
定义:cvpoint * pt;
typedef vector<cvpoint>point_list;
point_list::iterator theiterator;
vc6.0中可以这样写:pt=theiterator;
vs2005中要这样写:*pt=*theiterator;