ThreadPool
ThreadPool copied to clipboard
Build error on Debian
If I try to build the library, the build fails: Compiler: GCC 11 OS: debian testing
g++ -std=c++11 -O3 -pthread main.cpp
In file included from main.cpp:1:
threadpool.hpp: In member function ‘bool astp::ThreadPool::_thread_is_to_kill(std::thread::id)’:
threadpool.hpp:1080:62: error: ‘find_if’ is not a member of ‘std’
1080 | std::vector<std::thread::id>::iterator it = std::find_if(_threads_to_kill_id.begin(),
| ^~