Title
Creating and setting futures
Status
resolved
Section
[futures]
Submitter
Jonathan Wakely

Created on 2009-11-22.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Solved by N3058.

Date: 2010-12-05.00:09:22

[ 2010 Pittsburgh: Moved to NAD EditorialResolved. Rationale added below. ]

Date: 2010-12-05.00:09:22

[futures.unique_future]/1 should be updated to mention async.

[futures.shared_future]/1 should also be updated for async. That paragraph also says

... Its value or exception can be set by use of a shared_future, promise ([futures.promise]), or packaged_task ([futures.task]) object that shares the same associated state.

How can the value be set by a shared_future?

[futures.atomic_future]/1 says

An atomic_future object can only be created by use of a promise ([futures.promise]) or packaged_task ([futures.task]) object.

which is wrong, it's created from a std::future, which could have been default-constructed. That paragraph should be closer to the text of [futures.shared_future]/1, and should also mention async.

History
Date User Action Args
2010-12-05 00:09:22adminsetstatus: nad editorial -> resolved
2010-10-21 18:28:33adminsetmessages: + msg1406
2010-10-21 18:28:33adminsetmessages: + msg1405
2009-11-22 00:00:00admincreate