Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hplsla!jima From: jima@hplsla.HP.COM (Jim Adcock) Newsgroups: comp.lang.c++ Subject: Re: Why can't access control be used to disambiguate between base class members? Message-ID: <6590221@hplsla.HP.COM> Date: 1 Aug 89 17:32:10 GMT References: <2408@ginosko.samsung.com> Organization: HP Lake Stevens, WA Lines: 11 // The real solution is name conflict resolution, as shown below: class A{ public: int a; }; class B{ private:int a; }; class C : public A, public B {public: int& A_a; C():A_a(A::a){}}; void g(C* pc) { pc->A_a = 1; // OK, we now know it refers to class A, // you can stop holding your breath. :-) }