benefit of constant member functon

is there any benefit (in sense of running time or anything else) to declaring a member function or object as constant?
Last edited on
The benefit is that you may call a const member function for a const object.:)
even we can directly call a constant member function without a const. object!
is there any benefit (in sense of running time or anything else) to declaring a member function or object as constant?

Yes!

Andy

Sell me on const correctness
http://stackoverflow.com/questions/136880/sell-me-on-const-correctness
Topic archived. No new replies allowed.