Cpp: color_transfert no need for const when you pass by value