🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: constness of private members and methods

#3812
From: Steve Clamage
Date: Tue, 26 Mar 1996 00:29
24 lines
1491 bytes
In article 8fo@dub-news-svc-4.compuserve.com, Philippe Verdy 

>Is there any way (or proposal) to explicitly specify members
>of a class definition which are relaxed on constness certi-
>fication ?
>
>Would not it be great if we could simply define such members
>as "unconst" like in the following example :

The C++ draft standard has for some time included the keyword "mutable".
A mutable data member may be modified by any member function,
even if the object or the member function is const.

---
Steve Clamage, stephen.clamage@eng.sun.com




[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
Technical Details
Message-ID: <4j79dg$l9i@engnews1.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!usenet
References: <4j49e0$8fo@dub-news-svc-4.compuserve.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!usenet
From: clamage@Eng.sun.com (Steve Clamage)
Newsgroups: comp.std.c++
Subject: Re: constness of private members and methods
Date: 26 Mar 1996 00:29:59 GMT
Organization: Sun Microsystems Inc.
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <4j79dg$l9i@engnews1.Eng.Sun.COM>
References: <4j49e0$8fo@dub-news-svc-4.compuserve.com>
Reply-To: clamage@Eng.sun.com
NNTP-Posting-Host: taumet.eng.sun.com
X-Nntp-Posting-Host: taumet.eng.sun.com
Content-Length: 546
X-Lines: 17