6
error :: make_unique 'std' üyesi değil
Test etmek için kod incelemesinde yayınlanan aşağıdaki iş parçacığı havuzu programını derlemeye çalışıyorum. /codereview/55100/platform-independant-thread-pool-v4 Ama hataları alıyorum threadpool.hpp: In member function ‘std::future<decltype (task((forward<Args>)(args)...))> threadpool::enqueue_task(Func&&, Args&& ...)’: threadpool.hpp:94:28: error: ‘make_unique’ was not declared in this scope auto package_ptr = make_unique<task_package_impl<R, decltype(bound_task)>> (std::move(bound_task), std::move(promise)); ^ threadpool.hpp:94:81: error: expected primary-expression before ‘>’ token …