[Boost-bugs] [Boost C++ Libraries] #6269: c++11 complicance: thread move assignment should call terminate if joinable

Subject: [Boost-bugs] [Boost C++ Libraries] #6269: c++11 complicance: thread move assignment should call terminate if joinable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-14 22:05:38


#6269: c++11 complicance: thread move assignment should call terminate if joinable
------------------------------+---------------------------------------------
 Reporter: viboes | Owner: anthonyw
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 In order to be standard compliant the thread move assignment should call
 terminate if joinable instead of detaching the thread.

 "30.3.1.4 thread assignment [thread.thread.assign]

 thread& operator=(thread&& x) noexcept;

 Effects: If joinable(), calls terminate(). Otherwise, assigns the state of
 x to *this and sets x to a default constructed state."

 This behavior is incompatible with the current version, so it shall be
 activated by a specific define, i.e., BOOST_THREAD_VERSION=2.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6269>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC