From 32f06f4fe8d2397568fc023d4052291370ab5983 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 23 Oct 2024 10:33:36 +0200 Subject: [PATCH] thread: cleanup --- src/uvw/thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);