Added const qualifier to iterator to enable compiling with VS2008