How can I check the class type in c++?
In Java I used instanceof
.
I prefer not to use dynamic cast, but only classic c++.
Is there any way?
Clarification:
It isn't a duplicate of another question in StackOverflow, since I asked how can I find it without using of dynamic_cast
. In the other question, the answer was to use it. Please don't mark it as a duplicated.