Const correctness for value parameters
I’ve read many times that making value parameters in a function const is a bad thing to do because it’s unnecessary. However, I find it occasionally helpful to me as a check that my implementation doesn’t do something I don’t intend (as in the example at the end of your question). So, while it may … Read more