On 8/4/2013 8:57 AM, gast128 wrote:Returning a 'const X' is meaningless. Just return 'X' instead.
The same goes for passing something as 'const X'.
When you pass or return by value you get a copy of the object being passed so it means nothing to say that the object is 'const'.