Boost C++ Libraries: Ticket #8672: future<>::then(void()) doesn't works https://svn.boost.org/trac10/ticket/8672 <p> The following patch must be applied </p> <pre class="wiki">Index: future.hpp =================================================================== --- future.hpp (revision 84678) +++ future.hpp (working copy) @@ -3467,7 +3467,7 @@ Fp continuation; public: - explicit future_async_continuation_shared_state( + future_async_continuation_shared_state( F&amp; f, BOOST_THREAD_FWD_REF(Fp) c ) : parent(f.future_), @@ -3503,14 +3503,14 @@ template&lt;typename F, typename Fp&gt; struct future_async_continuation_shared_state&lt;F, void, Fp&gt;: public future_async_shared_state_base&lt;void&gt; { - F&amp; parent; + F parent; Fp continuation; public: - explicit future_async_continuation_shared_state( + future_async_continuation_shared_state( F&amp; f, BOOST_THREAD_FWD_REF(Fp) c ) : - parent(f), + parent(f.future_), //continuation(boost::forward&lt;Fp&gt;(c) continuation(boost::move(c)) { @@ -3549,14 +3549,14 @@ template&lt;typename F, typename Rp, typename Fp&gt; struct future_deferred_continuation_shared_state: shared_state&lt;Rp&gt; { - F&amp; parent; + F parent; Fp continuation; public: - explicit future_deferred_continuation_shared_state( + future_deferred_continuation_shared_state( F&amp; f, BOOST_THREAD_FWD_REF(Fp) c ) : - parent(f), + parent(f.future_), //continuation(boost::forward&lt;Fp&gt;(c) continuation(c) { @@ -3583,14 +3583,14 @@ template&lt;typename F, typename Fp&gt; struct future_deferred_continuation_shared_state&lt;F,void,Fp&gt;: shared_state&lt;void&gt; { - F&amp; parent; + F parent; Fp continuation; public: - explicit future_deferred_continuation_shared_state( + future_deferred_continuation_shared_state( F&amp; f, BOOST_THREAD_FWD_REF(Fp) c ): - parent(f), + parent(f.future_), continuation(boost::move(c)) { this-&gt;set_deferred(); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8672 Trac 1.4.3 viboes Sat, 08 Jun 2013 07:57:29 GMT owner, status changed https://svn.boost.org/trac10/ticket/8672#comment:1 https://svn.boost.org/trac10/ticket/8672#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 viboes Sun, 09 Jun 2013 17:18:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8672#comment:2 https://svn.boost.org/trac10/ticket/8672#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84717" title="Thread: fix #8550, #8671, #8672.">[84717]</a>) Thread: fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8550" title="#8550: Patches: [Boost.Thread] static linking of Boost.Thread with an MFC-Dll (closed: fixed)">#8550</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8671" title="#8671: Bugs: promise: set_..._at_thread_exit (closed: fixed)">#8671</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8672" title="#8672: Bugs: future&lt;&gt;::then(void()) doesn't works (closed: fixed)">#8672</a>. </p> Ticket