|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - another access problem:
----------------------------------------<snip>---------------------------
#include <stdio.h>
class ThePrivateBase
{
public :
ThePrivateBase () {}
ThePrivateBase ( void *_a ) {}
ThePrivateBase ( const ThePrivateBase &_a );
};
class Derived : private ThePrivateBase
{
public :
Derived () {}
Derived ( int *_a ) : ThePrivateBase ( _a ) {}
Derived ( const ThePrivateBase &_q ) : ThePrivateBase ( _q ) {}
#if defined _HUH_
Derived ( const Derived &_q ) : ThePrivateBase ( _q ) {}
#endif
};
int main ()
{
Derived d;
return ( 0 );
}
----------------------------------------<snip>---------------------------
Compiling with -D_HUH_ gives an error:
inh.cpp(19) : Error: member 'ThePrivateBase' of class 'Derived' is not
accessible
According to my (limited) knowledge it should be accessable. Or am I wrong?
Thanks,
Arjan
Aug 09 2004
Hello Arjan, Arjan Knepper wrote... Aug 12 2004
Heinz Saathoff wrote:Hello Arjan, Arjan Knepper wrote... Aug 12 2004
|