RPC icon indicating copy to clipboard operation
RPC copied to clipboard

Compilation error:ThreadPoolStrategy.cpp:66:45: error: no member named 'task_functor' in namespace 'boost::threadpool'

Open AlexLuya opened this issue 3 years ago • 0 comments

Hello,I copied /home/user/RPC/thirdparty/boost-threadpool to /usr/include/boost

but got this compilation error:

home/alex/software/RPC/src/strategies/ThreadPoolStrategy.cpp:66:62: error: expected '(' for function-style cast or type construction
        m_pool->schedule(boost::threadpool::task_functor<void>(boost::bind(&ThreadPoolStrategyJob::run, job)));
                                                         ~~~~^
/home/alex/software/RPC/src/strategies/ThreadPoolStrategy.cpp:66:45: error: no member named 'task_functor' in namespace 'boost::threadpool'
        m_pool->schedule(boost::threadpool::task_functor<void>(boost::bind(&ThreadPoolStrategyJob::run, job)));

AlexLuya avatar Nov 17 '21 10:11 AlexLuya