I've run into a brick wall here, needing to have an array/or single variable (not necessary for each element to be equal in size) each of the same data type, allowing for any template value used in that class to be used.
For example, the idea of:
template<class T>
class Test
{
};
Test* CurTest = new Test<random class>;
Really cant think of a solution other than boost varient data type, although I do not want the performance hit really. Maybe a void*, although this would be a last resort.
class AbstractTest { /*...*/ };
template <class T>
class Test : public AbstractTest { /*...*/ };
//...
AbstractTest * cur_test = new Test<ClassA>;
AbstractTest * next_test = new Test<ClassB>;
//etc...