On Tue, Nov 10, 2020 at 4:38 PM Amir Kirsh via SG20 <sg20@lists.isocpp.org> wrote:
For example: don't return a const reference to a parameter that you got as const ref. It might be a temporary (great example I send my students to is here).


I don't think the standard library agrees. E.g. https://en.cppreference.com/w/cpp/algorithm/min
This is probably the responsibility of the caller to not hold things as references in such cases.

 
But fixing just the range-based-for may lead to even more confusion.

I like this argument!