- internal::event_once(-1, EV_TIMEOUT, &dispatcher::wrapper< F >, &handler, const_cast< time* >(&to)); // XXX HACK libevent don't use const
+ internal::event_once(-1, EV_TIMEOUT, &dispatcher::wrapper< F >,
+ reinterpret_cast< void* >(&handler),
+ const_cast< time* >(&to)); // XXX HACK libevent don't use const