I need to make a vector of pointers for some class methods.
Here is the header lines I use to create it, visual studio accepts this:
typedef void(*methodptr[])();
std::vector<methodptr>myvector;
It is created, no compile errors.
But I don’t know how to initialize it. I have like 50 methods that I want to store in this vector (their pointers of course), for calling them later by pointers.