🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: What is the actual type of a pointer-to-member?

#2916
From: Sam Fenster
Date: Fri, 08 Dec 1995 15:55
18 lines
1477 bytes
| Peter Hubel <ludvig@daimi.aau.dk> wrote:
|> What I'd like is that '&D::b' is of type 'int D::*' whereas '&B::b' is of
|> type 'int B::*'.

John Max Skaller <maxtal@suphys.physics.su.oz.au> writes:
| I agree completely. But it is not the case. You must write:
|   [...]
|   static_cast<int D::*>(&B::b)
| 
| Even worse, the pointer to member system is functionally incomplete: there's
| no way to add two pointers to members.  Hence it is impossible to navigate a
| membership tree.

I'm intrigued.  Details?  What do you mean, "add"?  "Navigate"?

[ 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: <FENSTER.95Dec8002641@ground.cs.columbia.edu>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <01BABB82.F5809FE0@default> <4a4fmu$sp8@oznet03.ozemail.com.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: fenster@cs.columbia.edu (Sam Fenster)
Newsgroups: comp.std.c++
Subject: Re: What is the actual type of a pointer-to-member?
Date: 8 Dec 1995 15:55:13 GMT
Organization: Columbia University Department of Computer Science
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <FENSTER.95Dec8002641@ground.cs.columbia.edu>
References: <01BABB82.F5809FE0@default> <4a4fmu$sp8@oznet03.ozemail.com.au>
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: ground.cs.columbia.edu
In-Reply-To: John Max Skaller's message of 06 Dec 1995 18:45:55 GMT
Content-Length: 549
X-Lines: 14
Originator: clamage@taumet