Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@jwakely

Description

@jwakely
Issue body actions
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.An 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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.