[RESOLVED] Identifying Types
I think I remember reading somewhere how to do this but I can't remember how to for the life of me now that I need to do it. Figures huh? :)
I have a method that uses generics for a parameter. It's purpose is to output necessary information about an object to either the console (debugging) or to the window as needed. However I need to be able to identify the base type of the incoming parameter inside the method and I can't remember how to do that.
Here's a skeleton of the method:
Code:
template <typename T>
void displayObjectInfoConsole(T inObject) {
}
Is this something I can use RTTI for or am I thinking in the wrong direction?