diff --git a/src/uvw/thread.h b/src/uvw/thread.h index 3483ad75..36b782ce 100644 --- a/src/uvw/thread.h +++ b/src/uvw/thread.h @@ -183,7 +183,7 @@ public: /** * @brief Runs a function once and only once. * - * The callback must be such that it's convertible to `void(*)(void)`. Free + * The callback must be such that it's convertible to `void(*)()`. Free * functions and non-capturing lambdas are both viable solutions. * * @tparam F Type of the callback. @@ -191,7 +191,7 @@ public: */ template static void run(F &&f) noexcept { - using callback_type = void (*)(void); + using callback_type = void (*)(); static_assert(std::is_convertible_v); callback_type cb = f; uv_once(guard(), cb);