Fixing a compile error in debug versions of MSVC. It seems that the range-based for...