Skip to content

Problem with std::packaged_task in c++17 #75

@Jamaika1

Description

@Jamaika1

I wanted to compile an htjpeg2000 grok which uses the ThreadPool library.
https://github.com/progschj/ThreadPool
I can't compile the save.

    auto task = std::make_shared< std::packaged_task<return_type()> >(
            std::bind(std::forward<F>(f), std::forward<Args>(args)...)
        );

or

    auto task = std::shared_ptr< std::packaged_task<return_type()> >(
                 new std::packaged_task<return_type()>(std::bind(std::forward<F>(f), std::forward<Args>(args)...))
        );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions