This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.

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

Section: 33.10.8 [futures.shared.future] Status: Resolved Submitter: United States Opened: 2017-02-03 Last modified: 2021-06-06

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>;