Thread View: comp.std.c++
1 messages
1 total messages
Started by Volker Apelt
Tue, 22 Aug 1995 23:21
Is this valid?
Author: 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. ]
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