Skip to content

[futures.overview] has invalid declaration of swap for packaged_task #336

Closed
@jwakely

Description

@jwakely
template <class R>
  void swap(packaged_task<R(ArgTypes...)>&,packaged_task<R(ArgTypes...)>&) noexcept;

should be

template <class R, class... ArgTypes>
  void swap(packaged_task<R(ArgTypes...)>&,packaged_task<R(ArgTypes...)>&) noexcept;

The declaration in [futures.task] and the definition in [futures.task.nonmembers] are correct.

Metadata

Metadata

Assignees

Labels

tinyAn issue with a small change; with "cwg" label: can be applied editorially after CWG consent.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    close