Hi, I am trying to compile VC++6 code in 2005. I am having problems with NULL any one can explain me how do I fix this error message
My code is as below..
static
vector <int>::iterator data = NULL;
I got the error message below.
f:\test\test.cpp(20) : error C2440: 'initializing' : cannot convert from 'int' to 'std::_Vector_iterator<_Ty,_Alloc>'
1> with
1> [
1> _Ty=int,
1> _Alloc=std::allocator<int>
1> ]
1> No constructor could take the source type, or constructor overload resolution was ambiguous