diff --git a/ThreadPool.h b/ThreadPool.h index 4183203..5ea5fcb 100644 --- a/ThreadPool.h +++ b/ThreadPool.h @@ -10,5 +10,6 @@ #include #include #include - +#include + class ThreadPool { @@ -19,2 +20,2 @@ public: - -> std::future::type>; + -> std::future>; ~ThreadPool(); @@ -64,5 +65,5 @@ - -> std::future::type> + -> std::future> { - using return_type = typename std::result_of::type; + using return_type = std::invoke_result_t; - + auto task = std::make_shared< std::packaged_task >(