So I have a templated function that I want to define the type dynamically.
something_that_holds_type type;
obj.GetComponent<type>();
Is it possible? I also thought of smothing like this:
#define GETTYPE(t) t
obj.GetComponent<GETTYPE(int)>();
This works, but that doesn't help. What I would like to do was to pass the type name and converte it into a keyword, similar to this:
#define GETTYPE(t) removes_quatation_marks_of_t
obj.GetComponent<GETTYPE("int")>();
Is any of this possible in c++?