
19 May
2004
19 May
'04
5:15 p.m.
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.
Sorry I meant protected of course. class A { protected; int member; }; class B : A { public: using A::member; }; Gennadiy