Boost C++ Libraries: Ticket #10966: packaged_task::reset should not reuse the shared state to conform to C++11 https://svn.boost.org/trac10/ticket/10966 <p> The standard says </p> <pre class="wiki">void reset(); Effects: as if *this = packaged_task(std::move(f)), where f is the task stored in *this. [ Note: This constructs a new shared state for *this. The old state is abandoned (30.6.4). — end note ] Throws: — bad_alloc if memory for the new shared state could not be allocated. — any exception thrown by the move constructor of the task stored in the shared state. — future_error with an error condition of no_state if *this has no shared state. </pre><p> Boost.Thread reuse the shared state. </p> <pre class="wiki">Effects: Reset the state of the packaged_task so that it can be called again. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10966 Trac 1.4.3 viboes Mon, 26 Jan 2015 07:33:49 GMT owner, status changed https://svn.boost.org/trac10/ticket/10966#comment:1 https://svn.boost.org/trac10/ticket/10966#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket