You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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():
swap(thread&, thread&) is declared in the 30.3 [thread.threads] synopsis of the <thread> header, which is where it belongs because it's not a member of std::thread
@jwakely Thanks - I agree. The containers are different because they have a separate mini-synopsis from the header synopsis that also introduces the class definition, but that's not the case here. A bit inconsistent perhaps but not something that needs to be fixed now.
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():
HERE:
As it is usually done for container and other classes.
The text was updated successfully, but these errors were encountered: