Thread View: comp.std.c++
1 messages
1 total messages
Started by Dominique Marcadet
Thu, 28 Sep 1995 17:13
references in overloaded functions
Author: 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. ]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads