Topic: Defect Report: 30.3.1 Typo in thread class


Author: "Thomas J. Gritzan" <phygon_antispam@gmx.de>
Date: Fri, 3 Apr 2009 13:55:12 CST
Raw View
In the thread class, the second '&' was removed from the move
constructor, while it was not removed from the swap function.

In the detailed description, the '&' was removed from the swap function
instead.

Proposed resolution:

Modify p1 30.3.1 [thread.thread.class]

    thread(thread&); => thread(thread&&);

    void swap(thread&&); => void swap(thread&);

--
Thomas J. Gritzan

[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@netlab.cs.rpi.edu]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]