home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH15 / A151053.TXT < prev    next >
Encoding:
Text File  |  1993-10-02  |  463 b   |  8 lines

  1. Because the arguments in this call to swap() have different types,
  2. the compiler cannot create a template function.  The function
  3. template does not specify the type of the arguments, but it does
  4. specify that they have the same type.  The nontemplate function is
  5. called instead.  Both arguments are promoted to type float.  A
  6. side-effect of the promotion is that the values exchanged by the
  7. function cannot be assigned to "i" and "j" when the function ends.
  8.