Article View: comp.std.c++
Article #1819Is this valid?
From: Volker Apelt
Date: Tue, 22 Aug 1995 23:21
Date: Tue, 22 Aug 1995 23:21
27 lines
1615 bytes
1615 bytes
Is the declaration of two member functions which differ only in their
ctor-qualifiers valid c++?
eg.
class A {
public:
T& elem(int n)const;
T& elem(int n);
};
The April Working Paper says
8.4 [dcl.fct.def]
5 A cv-qualifier-seq can be part of a non-static member function decla
ration, non-static member function definition, or pointer to member
function only; see _class.this_. It is part of the function type.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Thanks in advance
--
-----------------------------------------------------------------------------
Volker Apelt Johann-Wolfgang-Goethe Universitaet
Dipl. Chem. Institut fuer organische Chemie
Frankfurt/Main ( Germany )
va@krypton.org.chemie.uni-frankfurt.de
[ 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:
<41db01$1bdq@jurpool0.rz.uni-frankfurt.de>Path:
arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamageShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews2.Eng.Sun.COM!taumet!clamage From: va@styx.org.chemie.uni-frankfurt.de (Volker Apelt) Newsgroups: comp.std.c++ Subject: Is this valid? Date: 22 Aug 1995 23:21:47 GMT Organization: University Frankfurt/M Sender: news@rz.uni-frankfurt.de Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <41db01$1bdq@jurpool0.rz.uni-frankfurt.de> NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: styx.org.chemie.uni-frankfurt.de X-Newsreader: TIN [version 1.2 PL2] Content-Length: 800 X-Lines: 26 Originator: clamage@taumet