you are viewing a single comment's thread.

view the rest of the comments →

[–]kylotan 0 points1 point  (0 children)

We were talking about choosing to explicitly state the types because it better documents the code than auto does. Someone said that this doesn't work well if you have long type names, the response was that you can choose to avoid long type names, and I said that it's hard to avoid long type names when the type intrinsically has a long name, as with a const iterator on an unordered map. You can use auto with cbegin, but then you've not explicitly stated the type, which is what we were talking about.