Article View: comp.std.c++
Article #2605Re: Virtual static members
From: Ralph Shnelvar
Date: Fri, 17 Nov 1995 05:47
Date: Fri, 17 Nov 1995 05:47
22 lines
1101 bytes
1101 bytes
I'm not sure what you are trying to accomplish but it seems that
implementing a virtual function that returns a pointer to a static
member is what you want.
dharley@aztec.co.za (David Harley) wrote:
>
>Is there any good reason why the following is disallowed?
>
>class A
>{
> virtual static s;
> f() { do something with s }
>}
>
[SNIP]
[ 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:
<48h1hj$8lm@meg.tesser.com>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<487q1e$peq@aztec.co.za>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: ralphs@tesser.com (Ralph Shnelvar) Newsgroups: comp.std.c++ Subject: Re: Virtual static members Date: 17 Nov 1995 05:47:10 GMT Organization: Tesser, LLC Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <48h1hj$8lm@meg.tesser.com> References: <487q1e$peq@aztec.co.za> NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text X-Nntp-Posting-Host: dialup2.tesser.com X-Newsreader: Forte Agent .99b.112 Content-Length: 342 Originator: clamage@taumet