Use range-based-for in late join