This question already has an answer here:
- How much is too much with C++0x auto keyword 13 answers
I find the auto keyword to be very useful as I don't have to worry about the type outcome of evaluating a complex expression or having to worry about which type to use (in terms of the right size) when initializing a variable. Besides backwards compatibility, is there any reason why I shouldn't use auto or circumstances in which it's not wise to do so ?
Aucun commentaire:
Enregistrer un commentaire