Article View: comp.std.c++
Article #2356class member: static name const; Legal?
From: Bret Pehrson
Date: Tue, 31 Oct 1995 02:41
Date: Tue, 31 Oct 1995 02:41
20 lines
1113 bytes
1113 bytes
Is the following legal?
class base
{
static funkie(void) const;
};
I spend 20 minutes reading the grammar and could not figure it out. In any
case, my compiler complains if I mix static and const for the same member
function.
I presume that it is legal and my compiler is crap, however I would rather hear
that from a C++ language expert.
Tnx.
---
[ 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:
<4733v8$278@stellar.comnet.com>Path:
arc1-ca.pugleaf.net!in2.uu.net!bounce-backShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back Date: 31 Oct 95 02:41:32 GMT Approved: fjh@cs.mu.oz.au From: Bret Pehrson <BretP@strata3d.com> Newsgroups: comp.std.c++ Subject: class member: static name const; Legal? X-Original-Date: 30 Oct 1995 18:02:15 GMT Organization: STRATA, Inc. Message-ID: <4733v8$278@stellar.comnet.com> X-Mailer: Mozilla 1.22 (Windows; I; 32bit) X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMJWM6+EDnX0m9pzZAQFqfQF8C/QKdE+1HhT+jmkuCd3FsLw+d4tVC0CM nWRGQruH8ggoF9+34riRVxzfmTRUa1yY =EEXL