quick const question

I'm trying to get to grips with some code, and I'm seeing this recurring thing that I'm not familiar with. This is an example:

1
2
Foo::operator^ (const Foo& f) const {
...


What does the last const do in this line?

Peace
It means that the object for which this member function
is called is guaranteed not to be modified by the function.
Awesome, thanks;)
I know this link is from Mircrosoft, but it's a pretty good explanation and example:
http://msdn.microsoft.com/en-us/library/6ke686zh(v=vs.80).aspx
Topic archived. No new replies allowed.