Boost C++ Libraries: Ticket #8615: Async: Replace make_future/make_shared_future by make_ready_future https://svn.boost.org/trac10/ticket/8615 <pre class="wiki">template &lt;typename T&gt; future&lt;typename decay&lt;T&gt;::type&gt; make_ready_future(T&amp;&amp; value); future&lt;void&gt; make_ready_future(); template &lt;typename T&gt; future&lt;T&gt; make_ready_future(exception_ptr ex); template &lt;typename T, typename E&gt; future&lt;T&gt; make_ready_future(E ex); </pre><p> Effects: </p> <ul><li>value prototype: The value that is passed into the function is moved to the shared state of the returned function if it is an rvalue. Otherwise the value is copied to the shared state of the returned function. </li></ul><ul><li>exception: The exception that is passed into the function is copied to the shared state of the returned function. </li></ul><p> Returns: </p> <ul><li>a ready future with the value set with value </li></ul><ul><li>a ready future with the exception set with ex </li></ul><ul><li>a ready future&lt;void&gt; with the value set (void). </li></ul><p> Postcondition: </p> <ul><li>Returned future, valid() == true </li></ul><ul><li>Returned future, is_ready() = true </li></ul><ul><li>Returned future, has_value() = true or has_exception() depending on the prototype. </li></ul> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8615 Trac 1.4.3 viboes Sat, 25 May 2013 13:29:59 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/8615#comment:1 https://svn.boost.org/trac10/ticket/8615#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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.55.0</span> </li> </ul> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/84493" title="Thread: little refactoring on future.hpp; Added make_ready_future.">[84493]</a>. </p> Ticket viboes Mon, 26 Aug 2013 21:20:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8615#comment:2 https://svn.boost.org/trac10/ticket/8615#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> Changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/85200" title="Thread: merge from trunk last updates since 1.54.">[85200]</a> </p> Ticket