Robert Greig wrote:
2008/6/3 Robert Greig <[EMAIL PROTECTED]>:

be, well, private). It is a while since I have done any C++ but I seem
to recall that Microsoft tightened up VS 2005 so that it rejected
this.

In fact I just searched MSDN and found this page which confirms that
VS 2005 and later do not allow this:

http://msdn.microsoft.com/en-us/library/ms235606.aspx

RG

Yup, I'm pretty sure gcc is wrong here, except for a very confusing discussion I found on comp.std.c++. What is obvious though is that portable code should not depend on dynamic_casting to private bases.


Reply via email to