Jan 2, 2011 at 5:11pm UTC
OIUHJK
Last edited on Jan 2, 2011 at 7:41pm UTC
Jan 2, 2011 at 5:13pm UTC
MMM
Last edited on Jan 2, 2011 at 7:45pm UTC
Jan 2, 2011 at 5:32pm UTC
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? ;-)
Jan 2, 2011 at 6:03pm UTC
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 Jan 2, 2011 at 7:46pm UTC
Jan 2, 2011 at 6:24pm UTC
Deleted on request! But next time, don't post something unless you want to share it.
Last edited on Jan 2, 2011 at 9:16pm UTC
Jan 2, 2011 at 6:25pm UTC
Deleted on request! But next time, don't post something unless you want to share it.
Last edited on Jan 2, 2011 at 9:17pm UTC
Jan 2, 2011 at 6:32pm UTC
Deleted on request! But next time, don't post something unless you want to share it.
Last edited on Jan 2, 2011 at 9:16pm UTC