Fixed erroneous usage of visual studio specific range-based for-loop