Article View: comp.std.c++
Article #2175Re: class A { A::A(); }; valid?
From: Jirtme Desquilbet
Date: Fri, 13 Oct 1995 08:28
Date: Fri, 13 Oct 1995 08:28
25 lines
1265 bytes
1265 bytes
After checking the August 1995 C++ ISO Committee Draft, it appears that the above code is *not* legal, although most compilers accept it. "8.3 Meaning of declarators [...] A declarator-id shall be a simple identifier, except for the following cases: the declaration of some special functions, the definition of a member function, the definition of a static data member, the declaration of a friend function that is a member of another class." So, a declarator-id for a class member *declaration* shall be a simple identifier. Well, as long as I my understanding of the CD is correct. Jerome. --- [ 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:
<199510121033.LAA25188@sorbonne.rational.com>Path:
arc1-ca.pugleaf.net!news.duke.edu!agate!agate!MattReferences:
<DG8tt5.GvB@kithrup.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.duke.edu!agate!agate!Matt
From: "J\ir\tme Desquilbet" <jDesquilbet@Rational.COM>
Newsgroups: comp.std.c++
Subject: Re: class A { A::A(); }; valid?
Date: 13 Oct 1995 08:28:22 GMT
Organization: Rational Software Corporation, France
Approved: Matt@Austern
Message-ID: <199510121033.LAA25188@sorbonne.rational.com>
References: <DG8tt5.GvB@kithrup.com>
NNTP-Posting-Host: austern.hip.berkeley.edu