3 ms·
While C++ auto is nice to save on some typing I think when you have to go look at the function definition to figure exactly what type you're dealing with makes
by UncleEntity 8y ago
While C++ auto is nice to save on some typing I think when you have to go look at the function definition to figure exactly what type you're dealing with makes it sometimes inconvenient.
Admittedly, I don't use any sort of IDE that does fancy mouseover type checking and only occasionally poke at C++ but there's one lib I wrote[0] where I had to remove a bunch of autos so I could figure out exactly what was going on (and, ironically, make the code "self documenting").
--edit--
[0] OK, translated from java to C++ so I also had to figure out the logic behind it to do any sorts of modifications.