This sis close to what i wanted. In ClassView, select the derived class your interested in, right click and choice Base Classes. A window will appear allowing you to navigate the inheritance tree.
thanks i'll take a look at patterns. however the original proposal still seems worthy of investigation, if for no other reason than to better understand.
It acually started to better understand the relationship of static and virtual member functions. It has grown int o the monster we speak of now. The idea was to create an object which contained a list of functions commonly used in some application. Let's say i'm processing messages from some...
I completely agree that the typedef should work, but it will only compile using
vector<int ( FPclass::*)(void)> functions;
i think i need to understand more about binders and adapters, as Bjarne Stroustrup explain them in his book.
Since he made the revsion to allow member function pointers in...
You are correct about how to call the function. As you stated the below worked.
(this->*functions[option])();
However this will not work.
typedef int (FPclass::*FuncPointer)(void);
vector<int (FuncPointer)(void)> functions;
I get the following error
"C:\Program Files\Microsoft Visual...
I'm having trouble accomplishing this without using a wrapper class. This all worked in Visual C++ except for the function call itself, which gave the following error
"illegal on operands of type 'int (__thiscall FPclass::*)(void)' "
It comes down to two questions.
1. Is their a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.