Steven Schveighoffer wrote:
> class X
> {
> const int void f()
> {
> x += 5;
> return x;
> }
> }
"const int void f()" is clearly a bad declaration. Anyway, "const int
f()" is a function returning a const int, not a const function returning
an int, so you wouldn't be able to call it through a const reference.
- Gregor Richards