Topic: Changes in Argument Matching Rules for Overloaded Functions


Author: Stephen.Clamage@eng.sun.com (Steve Clamage)
Date: 1997/03/14
Raw View
"Kent Wong" <athasach@interlog.com> writes:

>What are the differences, if any, in the argument matching rules as
>specified in the draft and in the ARM(r.13.2)?

The rules have been reworked considerably and differ in detail.
The ARM rules did not cover all situations, particularly those
involving overloaded operators vs the built-in versions. For
ordinary, non-tricky situations, the results of the ARM rules
and those in the draft standard are the same. For situations
which seem hard to figure out or seem to give a strange result
by ARM rules, the results according to the draft standard may
be different.

The full discussion of overloading occupies all of chapter 13
of the draft standard (25 pages) and I can't reproduce it here.
You can download a copy of the draft yourself. See the FAQ for
comp.std.c++ (referenced below) for details.
---
Steve Clamage, stephen.clamage@eng.sun.com
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: "Kent Wong" <athasach@interlog.com>
Date: 1997/03/12
Raw View
What are the differences, if any, in the argument matching rules as
specified in the draft and in the ARM(r.13.2)?

Thanks in advance,
  -Kent
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]