Quote Originally Posted by brewbuck View Post
There is never a need to return a "const" anything unless it is returned by reference or value. The writer of the code snippet might have been trying to emphasize that what the function returns is some "constant" (since it's returning the value of i, which is a const), but it's not necessary and not something I would do.
Thanks. I thought it was a little strange.