Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

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

@AlexLuya

Description

@AlexLuya

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)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions