S
Stéphane Ninin
Hello,
I have this piece of code:
class A {
public:
virtual void test(const A*);
};
class B : private A {
public:
virtual void test(const A*);
};
class C : B {
public:
virtual void test(const A*);
};
Depending on the compiler I use, code compiles fine or
compiler tells me:
test.cpp:1: error: `class A' is inaccessible
test.cpp:14: error: within this context
I guess the code is incorrect, but am not completely sure.
Any ideas / comments on this ?
Thanks.
I have this piece of code:
class A {
public:
virtual void test(const A*);
};
class B : private A {
public:
virtual void test(const A*);
};
class C : B {
public:
virtual void test(const A*);
};
Depending on the compiler I use, code compiles fine or
compiler tells me:
test.cpp:1: error: `class A' is inaccessible
test.cpp:14: error: within this context
I guess the code is incorrect, but am not completely sure.
Any ideas / comments on this ?
Thanks.