Opened 8 years ago
Last modified 8 years ago
#10424 assigned Feature Requests
future/shared_future::then() in case of continuation return an invalid future
| Reported by: | viboes | Owned by: | viboes |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | thread |
| Version: | Boost 1.56.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
Add this behavior to future/shared_future::then()
- In case of implicit unwrapping, the validity of the
futurereturned fromthencannot be established until after the completion of the functor passed intothen. In such case, the resultingfuturebecomes ready with an exception of typefuture_error, with an error code offuture_errc::broken_promise.
Change History (2)
comment:1 by , 8 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 8 years ago
Note:
See TracTickets
for help on using tickets.

Even if this https://github.com/boostorg/thread/commit/bb72eadbd8fb11a2ae4d7d1999b72015e9e48012 doesn't fixes the issue, it would be needed when doing implicit unwrapping.
This depends on #10550 Implicit unwrapping from then() calls.