Opened 8 years ago

Last modified 8 years ago

#10611 closed Feature Requests

Add emplace promise::set_value and emplace make_ready_future — at Version 1

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 (1)

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
Note: See TracTickets for help on using tickets.