Fixed issue with MSVC handling of end() iterator.
Authored by: artyom-beilis 2010-01-31
Parent: [r998]
Child: [r1000]