|
|
|
|
|
by LaLaLand122
1214 days ago
|
|
A citation of what's "Modern C++"? The term is a made up concept with no proper definition... But "Herb Sutter says you should use it, he even gave it a catchy name/acronym" is as good as it gets. And he does so AFAIK in the same place he created the "Almost Always Auto" name: https://herbsutter.com/2013/08/12/gotw-94-solution-aaa-style... Notice that he says "the main reasons to declare variables using auto are for correctness, performance, maintainability, and robustness—and, yes, convenience, but that’s in last place on the list.". He is arguing literally the opposite of what you do, that using auto avoids bugs ("for correctness"). I'm not going to argue in favour or against "Almost Always Auto". But I see no problem calling it "Modern C++". * Herb Sutter being the convener of ISO WG21 |
|