This error happens in Release mode of VS2010, solve this problem by do following:.Go to Project Pages / Configuration Properties / C,C++ / Preprocessor / Preprocessor Definitions, add the following:_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH