Install visual studio 2010 sp1, see this bug report : http://connect.microsoft.com/VisualStudio/feedback/details/545013
Update (April 14, 2015):
The bug description is 545013: The "vector::erase" constraint returns an incompatible iterator in the debug build.
The original link http://connect.microsoft.com/VisualStudio/feedback/details/545013 is not available, however a cache of the original bug is here http://web.archive.org/web/20140727031651/http://connect.microsoft.com/VisualStudio/feedback/details/545013
The bug was resolved in Visual Studio SP 1 as described here Description of Visual Studio 2010 Service Pack 1