I currently have a series of C++ functions that each call to a C function located elsewhere, these functions essentially do the same thing but return different types. I would like to be able to dynamically get the type of a template and call the associated function, something like
template<typename T>
T getVal(const char* id) {
return funcMap[T.someIdentifyingMethod](id);
}
Is this possible and if so how would I go about it?