RE: [boost] [test library patch for como]

Does it incorrect from standard standpoint: class A { int member; }; class B : A { public: using A::member; }; If it is allowed why so many compilers having issues with it? Gennadiy.

Rozental, Gennadiy wrote:
Does it incorrect from standard standpoint:
class A { int member; };
class B : A { public: using A::member; };
If it is allowed why so many compilers having issues with it?
I don't see why you think it should be allowed. A::member is private, not protected. It's not accessible from B.

On Wed, May 19, 2004 at 11:55:17AM -0400, Rozental, Gennadiy wrote:
Does it incorrect from standard standpoint:
class A { int member; };
class B : A { public: using A::member; };
No, this is not allowed, because B can't access the private A::member so it can't adjust the access of it to public. If A::member was protected, then B would be allowed to adjust access to it. jon -- "Alcohol kills more people than Heroin, crack, acid and Cannabis put together. So you'd think that all those drugs together would be legal." - redi
participants (3)
-
Jonathan Wakely
-
Peter Dimov
-
Rozental, Gennadiy