Article View: comp.std.c++
Article #2062references in overloaded functions
From: Dominique Marcadet
Date: Thu, 28 Sep 1995 17:13
Date: Thu, 28 Sep 1995 17:13
27 lines
1388 bytes
1388 bytes
In the DWP, in over.load, there is a list of cases where parameter
declarations are considered equivalents for the purpose of overloading
resolution.
I don't see anything about parameter declarations that differ only in the
use of references.
Does it mean that
void f (int) { ... }
void f (int &) { ... }
is legal C++ code (but which one will be used ?), does I have missed
something, or is it an omission of the DWP ?
Dominique Marcadet
+------------------------------------------------------------------------+
| Service Informatique Supelec | Dominique.Marcadet@supelec.fr |
| Plateau de Moulon | Tel : +33 1 69 85 14 73 |
| 91192 Gif sur Yvette Cedex - France | Fax : +33 1 69 85 12 34 |
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<MATT.95Sep28101336@physics2.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: Dominique Marcadet <Dominique.Marcadet@supelec.fr> Newsgroups: comp.std.c++ Subject: references in overloaded functions Date: 28 Sep 1995 17:13:36 GMT Organization: Supelec, Gif sur Yvette, France Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <MATT.95Sep28101336@physics2.Berkeley.EDU> NNTP-Posting-Host: physics2.berkeley.edu