Can someone remind me of the syntax for a function that returns a
pointer to a member function? The functions are going to be defined at
the declaration. They will take no parameters. I've given the pointer
members here.
TColor const (TuserInterface ::*
pointerToGetPoi ntColourFunctio n_)(unsigned int const) const;
TColor const (TuserInterface ::*
Get_GetPointCol ourFunctionPoin ter())((unsigne d int) const) const {
return pointerToGetPoi ntColourFunctio n_;
};
void (TuserInterface ::* pointerToSetPoi ntColourFunctio n_)(unsigned int
const, TColor const) const;
void (TuserInterface ::* Get_SetPointCol ourFunctionPoin ter())((unsigne d
int, TColor) const) {
return pointerToSetPoi ntColourFunctio n_;
};
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
pointer to a member function? The functions are going to be defined at
the declaration. They will take no parameters. I've given the pointer
members here.
TColor const (TuserInterface ::*
pointerToGetPoi ntColourFunctio n_)(unsigned int const) const;
TColor const (TuserInterface ::*
Get_GetPointCol ourFunctionPoin ter())((unsigne d int) const) const {
return pointerToGetPoi ntColourFunctio n_;
};
void (TuserInterface ::* pointerToSetPoi ntColourFunctio n_)(unsigned int
const, TColor const) const;
void (TuserInterface ::* Get_SetPointCol ourFunctionPoin ter())((unsigne d
int, TColor) const) {
return pointerToSetPoi ntColourFunctio n_;
};
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
Comment