The foreach macro is deprecated and replaced by the range-based for loop in C++11.
No real code change so as long as it builds, it works.