I have a Visual Studio 2008 solution with a number of projects that all define _HAS_ITERATOR_DEBUGGING=0 in the Preprocessor Definitions setting in project files. But this only seems to work on some of the projects, while others still get compiled with iterator debugging enabled.
I have checked every file in the solution, and nowhere is _HAS_ITERATOR_DEBUGGING defined other than the project settings.
Adding #define _HAS_ITERATOR_DEBUGGING 0 to the top of each stdafx.h in the solution works around the issue, but I would like to know why setting this in the project Preprocessor Definitions section is not working some of the time. Any ideas?
_HAS_ITERATOR_DEBUGGING=0, which my company ran into because all of our software was built with that option disabled. Microsoft's compiler team mentioned it should be fixed in VS2010.