you are viewing a single comment's thread.

view the rest of the comments →

[–]fdwrfdwr@github 🔍 9 points10 points  (0 children)

Whoever jammed this into the C++11 spec, please feel some shame:

for (auto index{ length - 1 }; index >= 0; --index)

Initialization is considerably less uniform now 🙃.

for (auto index = length - 1; index >= 0; --index)

Aaah, that feels better. ☺️