求教:vs2008中list的使用,在vc++6.0中可以通过,在2008中编译不了
如题 list<unsigned int>::iterator itor_space;//定义itor_space;在使用初始化时编译不了
CDisagreeDlg::CDisagreeDlg(CWnd* pParent /*=NULL*/)
: CDialog(CDisagreeDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDisagreeDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_pView = NULL;
itor_1Lel =NULL;
itor_space = NULL;//1这个位置出错,信息如下,#define NULL 0
错误信息:
d:\booleanalign源码和驱动程序\booleanalign_6.1.7\booleanalign\disagreedlg.cpp(30) : error C2679: 二进制“=”: 没有找到接受“int”类型的右操作数的运算符(或没有可接受的转换)
i:\program files\microsoft visual studio 9.0\vc\include\list(427): 可能是“std::list<_Ty>::_Iterator<_Secure_validation> &std::list<_Ty>::_Iterator<_Secure_validation>::operator =(const std::list<_Ty>::_Iterator<_Secure_validation> &)”
with
[
_Ty=unsigned int,
_Secure_validation=true
]
试图匹配参数列表“(std::list<_Ty>::_Iterator<_Secure_validation>, int)”时
with
[
_Ty=unsigned int,
_Secure_validation=true
]
}
程序在VC6.0中可以编译,2008中过不去,请教高人如何解决?