Open DeHby opened 3 months ago
auto task_ptr = std::make_shared<std::packaged_task<decltype(f(args...))()>>(std::move(func)); m_queue.enqueue(std::move(wrapper_func));
auto task_ptr = std::make_shared<std::packaged_task<decltype(f(args...))()>>(std::move(func)); m_queue.enqueue(std::move(wrapper_func));