Boost C++ Libraries: Ticket #8678: Async: Add future<>::fallback_to https://svn.boost.org/trac10/ticket/8678 <p> Quite often the user as a fall back value that should be used when the future has an exception. </p> <p> This factory creates a new future that will fall back to the parameter if the source future will be ready with an exception. The following </p> <pre class="wiki"> f.fallback_to(v); </pre><p> is a shortcut for </p> <pre class="wiki"> f.then([](future&lt;T&gt; f) { return f.get_or(v); }); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8678 Trac 1.4.3 viboes Sun, 09 Jun 2013 09:57:45 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/8678#comment:1 https://svn.boost.org/trac10/ticket/8678#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> Ticket viboes Sun, 09 Jun 2013 21:42:43 GMT <link>https://svn.boost.org/trac10/ticket/8678#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8678#comment:2</guid> <description> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/84719" title="Thread: Added future::unwrap()/get_or()/fallback_to().">[84719]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 26 Aug 2013 21:22:52 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8678#comment:3 https://svn.boost.org/trac10/ticket/8678#comment:3 <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