This is not a problem and seems to compile without problems. I need to extract the "dataType" from the template elements held in the vector. For instance I have another template function that I want to use on the data member "x" in class B:
So I hope this makes is clear. I have a vector of pointers to A, but were originally pointers to B type objects. This allows me to have an array of B objects that have different template "dataTypes".
However, I want to later figure out for a given entry in the vector, what "dataType" was it declared with.