I have a class with template argument, MyClass. Next I initiate 3 copies of that templeate class with different types :
MyClass<char> mc1; MyClass<int> mc2; MyClass<float> mc3;
Is it possible in c++ to make a general pointer array with each element as reference to differenet initiated class?
MyClass *arr; arr = &mc1; arr = &mc2; arr = &mc3;