Hi, could anyone help me how to using typeid correctly.
I know it take class type or expression as argument.
My question is if I have a class TypeA
The normal usage is typeid(TypeA);
If I have a string str and it'content is TypeA
And I want to take compare if(typeid(str) == typeid(TypeA))
I want the result is true.. Somehow the compiler only recognize its an string type
I want it to compare its content and it's guaranteed the "content" is a class Type Name.
How should I do?