I dont like for (auto ... ) and prefer for (auto const& ).
If auto refers to an integer or other POD, I would expect that one makes a conscious decision not to write auto const& and one can then just write the actual type.
I dont know whether this is easily clang format enforcable though.
I dont like for (auto ... ) and prefer for (auto const& ).
If auto refers to an integer or other POD, I would expect that one makes a conscious decision not to write auto const& and one can then just write the actual type.
I dont know whether this is easily clang format enforcable though.