Subject: [Boost-bugs] [Boost C++ Libraries] #11262: bad use of direct pointer in shared_state_nullary_task
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-03 09:26:21
#11262: bad use of direct pointer in shared_state_nullary_task
------------------------------+----------------------
Reporter: viboes | Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.58.0 | Severity: Problem
Keywords: |
------------------------------+----------------------
shared_state_nullary_task stores a direct pointer to a shared_state. It
must use instead a shared_pointer to avoid lifetime issues.
This class is used in async(Ex, f) and future::then(ex,f).
As far as the resulting future blocks on the constructor the lifetime
issue is not easy to reproduce.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11262> 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:18 UTC