Let's assume I have a base class
class X
{
};
and the the following classes inheriting
class BX : public X
{
};
class AX : public X
{
};
and this class
class MyClass
{
void DoSomething( AX* );
void DoSomething( BX* );
}
and this code
X* = ...
MyClass c;
c.DoSomething(X )
Do I have to use a reinterpret cast to
make this work? Isn't this a runtime
issue?
--
Torsten
class X
{
};
and the the following classes inheriting
class BX : public X
{
};
class AX : public X
{
};
and this class
class MyClass
{
void DoSomething( AX* );
void DoSomething( BX* );
}
and this code
X* = ...
MyClass c;
c.DoSomething(X )
Do I have to use a reinterpret cast to
make this work? Isn't this a runtime
issue?
--
Torsten
Comment