🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2358

Re: class member: static name const; Legal?

#2358
From: Jason Merrill
Date: Tue, 31 Oct 1995 05:54
17 lines
1148 bytes
>>>>> Bret Pehrson <BretP@strata3d.com> writes:

> Is the following legal?

> class base
> {
>   static funkie(void) const;
> };

Nope; the 'const' qualifier affects the 'this' parameter to a member
function, so applying it to a static member function is meaningless.

Jason
---
[ 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: <u9n3ainrii.fsf@yorick.cygnus.com>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <4733v8$278@stellar.comnet.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 31 Oct 95 05:54:27 GMT
Approved: fjh@cs.mu.oz.au
From: jason@cygnus.com (Jason Merrill)
Newsgroups: comp.std.c++
Subject: Re: class member: static name const;  Legal?
X-Original-Date: 30 Oct 1995 21:36:53 -0800
Organization: Cygnus Support, Mountain View, CA
Message-ID: <u9n3ainrii.fsf@yorick.cygnus.com>
References: <4733v8$278@stellar.comnet.com>
In-Reply-To: Bret Pehrson's message of 31 Oct 95 02:41:32 GMT
X-Newsreader: Gnus v5.0
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMJW6HOEDnX0m9pzZAQE6qgF/bzUGhS2N4gnSpLCw4fsvtSfRH2QNJTJ9
 sNCkQBnVFos0l9xyITsgXg6uHoxWIIvL
 =AfMK