Article View: comp.std.c++
Article #2071overloading and WP
From: Anil Vijendran
Date: Fri, 29 Sep 1995 16:24
Date: Fri, 29 Sep 1995 16:24
30 lines
1619 bytes
1619 bytes
Question:
The following is an excerpt (sp?) from WP @ Cygnus.COM
(http://www.cygnus.com/~mrs/wp-draft.
Check out the third declaration of function "f". Is that supposed to
be an error -- I mean the comment?
13.1 Overloadable declarations [over.load]
....
--Two parameter declarations that differ only in their default argu-
ments are equivalent. [Example: consider the following:
void f (int i, int j);
void f (int i, int j = 99); // Ok: redeclaration of f (int, int)
void f (int i = 88); // Ok: redeclaration of f (int, int)
void f (); // Ok: overloaded declaration of f
--
Anil
___________________________________________________________________________
Anil K Vijendran USL Box 43007, Lafayette, LA 70504-3007
akv@cacs.usl.edu (318) 232-5502 [H]
---
[ 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:
<AKV.95Sep29014218@srl03.cacs.usl.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: akv@srl03.cacs.usl.edu (Anil Vijendran) Newsgroups: comp.std.c++ Subject: overloading and WP Date: 29 Sep 1995 16:24:54 GMT Organization: Center for Advanced Computer Studies, U of SW Louisiana Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <AKV.95Sep29014218@srl03.cacs.usl.edu> Reply-To: akv@cacs.usl.edu NNTP-Posting-Host: physics2.berkeley.edu