D
DX
in MSVC7 the following seems to work:
class A { public: virtual void func1(void); };
class B { public: virtual void func2(void); };
class AB : public A, public B
{
virtual void A::func1(void) {return 0;};
virtual void B::func1(void) {return 1;};
}
This is great, except my two versions of func1 are actually huge, and
I'd like to put them into two separate files. In order to do this,
I'm doing something like:
class AB : public A, public B
{
virtual void A::func1(void);
virtual void B::func1(void);
}
void AB::A::func1(void)
{ return 0; };
void AB::A::func1(void)
{ return 1; };
However, when I do this, I get a compiler error:
error C2509: 'func1': member function not declared in 'AB'
Anyone have any clue what I'm doing wrong? Syntax error somewhere?
class A { public: virtual void func1(void); };
class B { public: virtual void func2(void); };
class AB : public A, public B
{
virtual void A::func1(void) {return 0;};
virtual void B::func1(void) {return 1;};
}
This is great, except my two versions of func1 are actually huge, and
I'd like to put them into two separate files. In order to do this,
I'm doing something like:
class AB : public A, public B
{
virtual void A::func1(void);
virtual void B::func1(void);
}
void AB::A::func1(void)
{ return 0; };
void AB::A::func1(void)
{ return 1; };
However, when I do this, I get a compiler error:
error C2509: 'func1': member function not declared in 'AB'
Anyone have any clue what I'm doing wrong? Syntax error somewhere?