would you write this auto x = *it;// modify itif(error) *it = x;
instead of this?auto x = *it;// modify xif(ok) *it = x;
#cpp
like you think you are making a backup or something? who would do that? cmon...
in general would you make a copy and hold on to it unless you want to modify it? why?
tell me you'll never do that...
ok in your closet maybe, but not in generic code cmon, not in a libraryyyyy ToT
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.
ok in your closet maybe, but not in generic code cmon, not in a libraryyyyy ToT