is it possible to have some kind of list / array / vector of different structs?
For example in MFC
there are CObject
and CArray
but without MFC:
I can do something alike
std::vector<void*> pVec;
{
MYSTRUCT m = new MYSTRUCT;
pArr.push_back(m);
// looks fine here
}
//what is in my vector now?
Is there something that can handle it?