Stressed

OIUHJK
Last edited on
MMM
Last edited on
Hey, this is a bunch of really trivial errors.

First one is that you must forward declare 'TheFilter': Add 'class TheFilter;' somewhere before you 'TheData' class. Then you have a stray '*/', remove it. Then you have a reference to a private member. This latter one requires a bit of thought on your side. I made the obvious changes and your code compiles and runs fine.

Did you even try? ;-)

class A ;

class B {
private:
A* fPtrA ;
public:
void mymethod(const& A) const ;
} ;

B derives from A or B explicitely (or implicitely) uses objects of class A. You then need to include <A.h>
#include <A.h>

class B : public A {

} ;

class C {
private:
A fA ;
public:
void mymethod(A par) ;
}[/quote]
Last edited on
Deleted on request! But next time, don't post something unless you want to share it.
Last edited on
Deleted on request! But next time, don't post something unless you want to share it.
Last edited on
Deleted on request! But next time, don't post something unless you want to share it.
Last edited on
Topic archived. No new replies allowed.