Hi,
I am porting a C++ project to VS2008. Piece of the code has a variable declared in the for loop statement as below:
for(bmpMapType::const_iterator it = bitmaps.begin(); it != bitmaps.end(); ++it) {
}
"it" is later used as an index in another for loop statement as below: for(it = bitmaps.begin(); it != bitmaps.end(); ++it) {
}
It generates error c2065 in debug build wit hthe below project settings where as release build was successful.
I have set the C\C++ > Language> For Conformance In For loop Scope to No (/Zc:forscope- ) and built the project with release configuration mode. Code was built succesfully.
The same code with the same settings fail to build in debug mode. Can anyone help me to resolve the issue.
Any help is appreciated.
Thanks, Lakshmi