Hello
class A
{
public:
virtual void Func1() = 0;
void Func1Caller()
{
Func1();
}
~A()
{
Func1Caller();
}
};
class B : public A
{
public:
virtual void Func1()
{
printf("this is func1\n");
}
};
int main()
{
B t;
return 0;
}
It seems that VC is not allowing Func1Caller() to call Func1() from the
destructor.
Don't know if this a C++ issue or a compiler issue.
Can someone clarify and provide a workaround?
--
Elias
class A
{
public:
virtual void Func1() = 0;
void Func1Caller()
{
Func1();
}
~A()
{
Func1Caller();
}
};
class B : public A
{
public:
virtual void Func1()
{
printf("this is func1\n");
}
};
int main()
{
B t;
return 0;
}
It seems that VC is not allowing Func1Caller() to call Func1() from the
destructor.
Don't know if this a C++ issue or a compiler issue.
Can someone clarify and provide a workaround?
--
Elias
Comment