Hello,
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[3];
arr[0] = &mc1;
arr[1] = &mc2;
arr[2] = &mc3;