From 5fb20249909628f96575ee278e1cd9f3bba26a16 Mon Sep 17 00:00:00 2001 From: Recolic <git@me.recolic.net> Date: Thu, 6 Mar 2025 16:38:32 -0800 Subject: [PATCH] . --- functional.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functional.hpp b/functional.hpp index 138a055..8e60871 100644 --- a/functional.hpp +++ b/functional.hpp @@ -48,7 +48,7 @@ namespace rlib { return std::chrono::duration<double>(end - begin).count(); } template <typename Func, typename... Args> - static inline auto timeout(double timeout_seconds, Func&& func, Args&&... args) { + static inline auto timeout(int timeout_seconds, Func&& func, Args&&... args) { using ReturnType = decltype(func(args...)); auto future = std::async(std::launch::async, std::forward<Func>(func), std::forward<Args>(args)...); -- GitLab