Comment by detaro

7 years ago

But as you show with your other example, the difference between auto and decltype does come up in practice, even if the example is not a typical one.

Sure: that's why I provided one that reflected the real world more closely.

  • re-reading: My first comment was addressing the "why might this have been downvoted part", I didn't make that clear enough.