|
-
May 4th, 2010, 11:13 AM
#2
Re: General C++ question about const
It means that the method (or more specifically, the methods overriding it, since it's pure virtual) is not allowed to modify the object it is operating on. For the duration of the method call, all members of the object are treated as if they're const members (unless they're declared mutable).
This must be done to allow a method to be called on a const object, or via a const reference to an object.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|