Opened 8 years ago

Closed 8 years ago

#10611 closed Feature Requests (fixed)

Add emplace promise::set_value and emplace make_ready_future

Reported by: viboes Owned by: viboes
Milestone: Boost 1.58.0 Component: thread
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes)

I wonder if we shouldn't have a emplace promise::set_value (as std::experimental::optional<T> has) and a emplace make_ready_future.

template <class ...Args>
promise<T>::set_value(Args&& ... args);
 template <class T, class ...Args>
future<T> make_ready_future(Args&& ... args);

Change History (3)

comment:1 by viboes, 8 years ago

Description: modified (diff)
Owner: changed from Anthony Williams to viboes
Status: newassigned
Summary: Add emplace promise::set_valueAdd emplace promise::set_value and emplace make_ready_future

comment:3 by viboes, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.