Use const auto& for non-pointer types in for each loop