diff --git a/src/uvw/poll.cpp b/src/uvw/poll.cpp index 79e508fc..e7c8e890 100644 --- a/src/uvw/poll.cpp +++ b/src/uvw/poll.cpp @@ -20,7 +20,7 @@ UVW_INLINE void poll_handle::start_callback(uv_poll_t *hndl, int status, int eve if(poll_handle &poll = *(static_cast(hndl->data)); status) { poll.publish(error_event{status}); } else { - poll.publish(poll_event{poll_event(events)}); + poll.publish(poll_event{details::uvw_poll_event(events)}); } } @@ -32,7 +32,7 @@ UVW_INLINE int poll_handle::init() { } } -UVW_INLINE int poll_handle::start(poll_handle::poll_event flags) { +UVW_INLINE int poll_handle::start(details::uvw_poll_event flags) { return uv_poll_start(raw(), static_cast(flags), &start_callback); } diff --git a/src/uvw/poll.h b/src/uvw/poll.h index 94eddf65..74864edd 100644 --- a/src/uvw/poll.h +++ b/src/uvw/poll.h @@ -56,11 +56,10 @@ struct poll_event { * [documentation](http://docs.libuv.org/en/v1.x/poll.html) * for further details. */ -class poll_handle final: public handle { +class poll_handle final: public handle { static void start_callback(uv_poll_t *hndl, int status, int events); public: - using poll_event = details::uvw_poll_event; explicit poll_handle(loop::token token, std::shared_ptr ref, int desc); explicit poll_handle(loop::token token, std::shared_ptr ref, os_socket_handle sock); @@ -90,7 +89,7 @@ public: * @param flags The events to which the caller is interested. * @return Underlying return value. */ - int start(poll_event flags); + int start(details::uvw_poll_event flags); /** * @brief Stops polling the file descriptor.