quote:Original post by civguy...not the return value, but the function itself.
[const] only applies to stuff that is passed by reference or by pointer, since those could be changed. If the return value is a copy, it doesn''t have to be const.
struct foo { int bar() const // like this { return 1234; }};
That sort of declaration makes this a pointer to a const object.