Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlexLuya opened this issue Nov 17, 2021 · 0 comments

Comments

@AlexLuya
Copy link

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)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant