diff --git a/functional.hpp b/functional.hpp index 138a0550ff598525853f7468267aa3963dd8ecf2..8e6087142eeb272c1a58e7c7a1fc34bfa92af98e 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)...);