Replace boost transform construct by C++11 range loop (more compact)