News for hackers. Stuff that matters.
Re:C++26: A Placeholder with No Name by FpUser on Saturday January 11, 2025 @09:39AM (#42666166)
I am in a middle ground. Usually do not use auto but in the cases like:

   for (auto member : set_of_members)
and some other that are similar by nature auto is a god blessing.
Re:C++26: A Placeholder with No Name by secondcoming on Saturday January 11, 2025 @12:44PM (#42667493)
Except this makes a copy of each member in set_of_members, which is probably not what you want.

https://godbolt.org/z/1YnEs1M34

Re:C++26: A Placeholder with No Name by FpUser on Saturday January 11, 2025 @02:46PM (#42668435)
This was to illustrate a point of auto rather than intricacies of copying, referencing. I know what I want and am familiar with auto&, const auto&, auto&& etc. etc.