Function pointer to Function Object

Hi,

I have something like this:

class RED
{
public:
int operator()() { return 0; }
}

class BLUE
{
public:
int operator()() { return 1; }
}

I define a function pointer, (*mycolor),
Is there a way, that I can access my function objects (defined above) through this function pointer??

Any comments/suggestion are welcome.
Thanks.

--
regards,
eye51
Topic archived. No new replies allowed.