B
Bryan
If I have two classes derived from the same base class, how can I check
if they are the same type?
class Base : CObject
{
public:
Base() {};
~Base() {};
}
class FirstClass : public Base {};
class SecondClass : public Base {};
I would like to do something like:
if (FirstClass == SecondClass)
{
// Whatever
}
Maybe this is an MFC thing? Any suggestions?
I do not want to enable RTTI if possible, which is why I am using CObject.
Thanks,
B
if they are the same type?
class Base : CObject
{
public:
Base() {};
~Base() {};
}
class FirstClass : public Base {};
class SecondClass : public Base {};
I would like to do something like:
if (FirstClass == SecondClass)
{
// Whatever
}
Maybe this is an MFC thing? Any suggestions?
I do not want to enable RTTI if possible, which is why I am using CObject.
Thanks,
B