Hi Gary, thanks for the reply but I think you might have missed the actual
that is the type of a private base class. Surely the C++ standard doesn't
""Gary Chang[MSFT]"" <v-garych@online.microsoft.com> wrote in message
news:9hL9cNAwFHA.3020@TK2MSFTNGXA01.phx.gbl...
> Hi Jonathan,
>
>>...
>>The error generated is "error C2247: 'A' not accessible because 'B' uses
>>'private' to inherit from 'A'".
>>
>>As far as I can see there is nothing wrong with the above construction. Is
>>this a compiler error?
>
> I think the VS2005 C++ compiler's behavior is correct, according to the
> C++
> standard, anything placed within a private section of the base class is
> only available to the class itself, and not to any of the derived classes,
> also if the base class is privately inherited, then the base class could
> be
> only accessible to the class itself(in your case: B), and could not be
> accessible to its derived class(in your case: C).
>
> I am afraid the VS2003 C++ compiler doesn't comply to the C++ language
> standard strictly in this point.
>
>
> Thanks for your understanding!
>
> Best regards,
>
> Gary Chang
> Microsoft Community Support
> --------------------
> Get Secure! ¡§C
www.microsoft.com/security > Register to Access MSDN Managed Newsgroups!
>
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
> &SD=msdn
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>