home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A09324.TXT < prev    next >
Encoding:
Text File  |  1993-10-20  |  490 b   |  9 lines

  1. You can include friend and member versions of an overloaded
  2. operator in a class.  If two interpretations of an operator are
  3. defined, argument matching determines which version is called when
  4. the operator is used.  The first argument of an operator that is
  5. implemented as a member function is the implicit "this" pointer.
  6. If friend and member versions do not have different argument
  7. lists, an attempt to use the operator may fail to compile because
  8. it is an ambiguous function call.
  9.