home *** CD-ROM | disk | FTP | other *** search
- To declare a member function constant, insert the keyword const
- after the argument list. When the function is not inline, this
- keyword must appear in both the declaration and the definition. A
- constant member function does not compile successfully if it
- attempts to assign a value directly to any data member of its
- class. As with nonmember constants, it is still possible to
- assign a value to a member by casting it to a nonconstant type.
-