Skip to content

Should make_parallel_group(Ops...) be using rvalue references? #1726

@spchamp

Description

@spchamp

Using boost:asio::experimental::make_parallel_group with Boost 1.90.0. I noticed an error message about a copy constructor not being available for a custom awaitable type that I was testing. The copy constructor would have been applied within the call to make_parallel_group(...).

I notice that there's a definition of make_parallel_group(Ops...) [src] in the sources. Could this perhaps be expressed alternately as make_parallel_group(Ops&&...)? If it was expressed like in the second case, perhaps the interior call to std::move might not create a copy then?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions