would you write this
auto x = *it;
// modify it
if(error)
*it = x;
instead of this?
auto x = *it;
// modify x
if(ok)
*it = x;
One of the severe problems with C++ (>C++98) is that it teaches horrible behaviors like the use of "auto"... which really translates to:"I have no idea what this is!".
No STL, and no nonsense containers...
http://harmful.cat-v.org/software/c++/
For a breath of fresh air, try C (C99) instead 😉
Listen here, kiddo: you know nothing about me
@Firaas so you were just pretending to know c++ and what auto's for?
sure, fresh air, as in the crippling smell of rancid bloat.
https://qoto.org/web/statuses/104722541090746606