by mh » Thu Mar 01, 2012 6:06 pm
const is really only of use for pass-by-reference anyway; if you pass by value then the value will be pushed and popped on the stack and modifying it in the function will achieve absolutely nothing. Sometimes it's useful to temporarily modify a value and have the original restored by this method (although you'd better add a comment explaining that this is the behaviour you want).