From -6905878907833640566
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,c997c315a835018d,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1993-10-11 12:11:54 PST
Newsgroups: comp.std.c++
Subject: Implicit conversions for pointer-to-member
From: gordan.palameta@canrem.com (Gordan Palameta)
Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!news2.uunet.ca!uunet.ca!portnoy!canrem.com!gordan.palameta
Distribution: world
Message-ID: <60.1231.4352.0N18601B@canrem.com>
Date: Mon, 11 Oct 93 13:29:00 -0400
Organization: CRS Online  (Toronto, Ontario)
Lines: 20

Let D be a derived class of B, and Foo is some other class.


Is this legal without an explict cast?

       B Foo::*  <--   D Foo::*

HP C++ 3.0 (based on cfront) seems to think so, IBM C++ and DEC C++
disagree.

I would think that this is really no different from the ordinary

       B *  <--  D *

and therefore should be allowed.


Most books only discuss the (quite different) case of:

       Foo D::*   <--  Foo B::*


