|
Boost : |
From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2004-05-19 12:15:18
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk