2920. Add a deduction guide for creating a shared_future from a future rvalue

Section: 33.6.8 [futures.shared_future] Status: Resolved Submitter: United States Opened: 2017-02-03 Last modified: 2017-03-20

Priority: Not Prioritized

View all other issues in [futures.shared_future].

View all issues with Resolved status.

Discussion:

Addresses US 164

Add a deduction guide for creating a shared future from a future rvalue.

Proposed change:

Add to the <future> synopsis:

template <class R>
shared_future(future<R>&&) -> shared_future<R>;

[2017-03-12, post-Kona]

Resolved by P0433R2.

Proposed resolution:

This wording is relative to N4618.

  1. Add to the synopsis of <future>:

    
    template <class R>
    shared_future(future<R>&&) -> shared_future<R>;