I need to call a template function, something like:
void myFunc<T>();
I have the template type as string and I want to call the function using the type I have as string. For example if i want to call it for the Exception type, instead of calling:
myFunc<Exception>()
i need to do it like:
string type = "Exception";
myFunc<type>();
(i need to parse an object from json string, and i'm getting the type of the object as a string)
Is there a way to do something like this.
Thanks