Thread overview
"access declaration of base ...": error message needs explanation
Jul 23, 2004
Scott Michel
Jul 23, 2004
Walter
Jul 23, 2004
Scott Michel
Jul 25, 2004
Walter
July 23, 2004
Does anyone have a good explanation of what this error message means or what its intent is?

..\..\stlport\stl/_tree.h(278) : Error: access declaration of base member 'EH_allocator<TestClass >::_Non_const_traits' has storage class or type
July 23, 2004
"Scott Michel" <scottm@aero.org> wrote in message news:cdpo3k$19qh$1@digitaldaemon.com...
> Does anyone have a good explanation of what this error message means or what its intent is?
>
> ..\..\stlport\stl/_tree.h(278) : Error: access declaration of base member 'EH_allocator<TestClass >::_Non_const_traits' has storage class or type

Cannot specify a storage class or a type when
adjusting the access to a member of a base class.


July 23, 2004
Walter wrote:
> "Scott Michel" <scottm@aero.org> wrote in message
> news:cdpo3k$19qh$1@digitaldaemon.com...
> 
>>Does anyone have a good explanation of what this error message means or
>>what its intent is?
>>
>>..\..\stlport\stl/_tree.h(278) : Error: access declaration of base
>>member 'EH_allocator<TestClass >::_Non_const_traits' has storage class
>>or type
> 
> 
> Cannot specify a storage class or a type when
> adjusting the access to a member of a base class.

Sorry, don't mean to be completely dense, but do you have an example?
July 25, 2004
"Scott Michel" <scottm@aero.org> wrote in message news:cds830$2tvp$1@digitaldaemon.com...
> Walter wrote:
> > "Scott Michel" <scottm@aero.org> wrote in message news:cdpo3k$19qh$1@digitaldaemon.com...
> >
> >>Does anyone have a good explanation of what this error message means or what its intent is?
> >>
> >>..\..\stlport\stl/_tree.h(278) : Error: access declaration of base member 'EH_allocator<TestClass >::_Non_const_traits' has storage class or type
> >
> >
> > Cannot specify a storage class or a type when
> > adjusting the access to a member of a base class.
>
> Sorry, don't mean to be completely dense, but do you have an example?

From ARM 11.3:

class B { };
class D : private B {
   int d;
public: int B::c;
};