Angus <> wrote in news:6c64a91a-264a-43fb-b454-
:
> I have this typedef:
>
> typedef CInterface::IFStatus (CInterface::*Action)();
>
>
> It is used in a state machine function to call a pertinent function
>
> It is used like this:
>
> static const Action actiontable [] =
>
> Which is an array of the functions to call (in particular states.
>
> I am having trouble working out what the typedef is doing? Eg to use
> without the typedef what would I substitute for Action?
>
> Can someone explain what is going on here please.
>
This is a typedef to a pointer-to-member-function of the class CInterface
which returns a CInterface::IFStatus object by value, and takes no
parameters.