home *** CD-ROM | disk | FTP | other *** search
- You can include friend and member versions of an overloaded
- operator in a class. If two interpretations of an operator are
- defined, argument matching determines which version is called when
- the operator is used. The first argument of an operator that is
- implemented as a member function is the implicit "this" pointer.
- If friend and member versions do not have different argument
- lists, an attempt to use the operator may fail to compile because
- it is an ambiguous function call.
-