I would like to know if it is possible to do something like the "instanceof" of Java in C++. Indeed I searched a lot but I have not found anything for finding the class of an instance of a class.
To sum up, I would like to use something like this:
bool instanceOf(Gui guiA, Gui guiB)
{
Gui *castedGuiPtr = dynamic_cast<classOf(guiA)*>(guiB);
return castedGuiPtr != 0;
}