[comp.lang.c++] C++ language question

tiemann@YAHI.STANFORD.EDU (Michael Tiemann) (05/08/89)

I need some help refreshing my memory.

Given that we have a base class B and a class D derived from B, it is
permissable to convert from a D* to a B*, provided visibility rules
are not violated.  Similarly for a D& to a B&.

(1) Under what conditions can one convert from a D to a B?

(2) Under what conditions can one convert from a D** to a B**?
I thought I read somewhere that (2) was not legal, but now I can't
find the reference.

Please reply via email.

Michael