Skip to content

[thread.thread.class] missing declaration of swap(thread&,thread&) #65

Closed
@sdutoit

Description

@sdutoit

From an email to cxxeditor@:

I suggest to add in
30.3.1 Class thread [thread.thread.class]
right after the declaration of class thread but still inside
namespace std a declaration of the global swap():

namespace std {
  class thread {
    ...
  };

HERE:

  // 30.3.1.7 specialized algorithms:
  void swap(thread& x, thread& y) noexcept;
}

As it is usually done for container and other classes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions