Table pointer to class functions.
I am having problems with a table of pointers to functions within a class.
I have a user intreface class that accepts messages in the form of a vector of strings. I want one function parsemessage() to index a table of class functions and be the main driver for the class.
I declare the array as private:
but am having problems initializing the table in my constructor.
unfortunately this does not work. I tried various other ideas but can't seem to get the right syntax.
Finally is it possible to use a vector of pointers to functions and if so what is the proper way to do this for a class (within that class)
I would post the code but would have to reboot into Linux to do it. Hopefully there is enough info for assistance.