请教C++ error C2679 错误
在vc6.0(装上stlport后)和linux下没有错误,可是在vs2005下编译,报错!装上stlport还是报错,这是怎么回事呢?
程序应该没问题才对啊,为什么换了个环境就不好用了呢?!
error C2679: binary '=' : no operator found which takes a right-hand operand of type 'stlp_std::priv::_Rb_tree_iterator<_Value,_Traits>' (or there is no acceptable conversion)
1> with
1> [
1> _Value=SctData,
1> _Traits=stlp_std::priv::_ConstSetTraitsT<SctData>
1> ]
1> d:\stlport-5.1.5\stlport\stl\_tree.h(202): could be 'stlp_std::priv::_Rb_tree_iterator<_Value,_Traits> &stlp_std::priv::_Rb_tree_iterator<_Value,_Traits>::operator =(const stlp_std::priv::_Rb_tree_iterator<_Value,_Traits> &)'
1> with
1> [
1> _Value=SctData,
1> _Traits=stlp_std::priv::_SetTraitsT<SctData>
1> ]
1> while trying to match the argument list '(stlp_std::priv::_Rb_tree_iterator<_Value,_Traits>, stlp_std::priv::_Rb_tree_iterator<_Value,_Traits>)'
1> with
1> [
1> _Value=SctData,
1> _Traits=stlp_std::priv::_SetTraitsT<SctData>
1> ]
1> and
1> [
1> _Value=SctData,
1> _Traits=stlp_std::priv::_ConstSetTraitsT<SctData>
1> ]
SctData是一个结构体。
双击错误,定位的下列的程序:
set<WordData>::iterator it = pset.begin();
望高手赐教