struct TimerEvent
{
event Event;
timeval TimeOut;
static void HandleTimer(int Fd, short Event, void *Arg);
};
HandleTimer needs to be stat
You've got a bit of a conflict here in your question. When you pass &TimerEvent::TimerHandler
to a C library, you do exactly that. You could also have passed &DerivedTimerEvent::TimerHandler
, if you wanted. But you can't pass &TimerEvent::TimerHandler
and expect the C library (!) to figure out you actually meant &DerivedTimerEvent::TimerHandler
.