New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding split_future #2246
Adding split_future #2246
Conversation
- this allows to convert a future storing a tuple of values into a tuple of futures, each storing one of the elements of the original tuple
- renamed to split_future - added support for array<T, N> - added special cases for future<tuple<>> and array<T, 0> - added some documentation - added a missing keyword 'template'
I have had a good look through this and it seems to be exactly what we need. I have not been able to test it yet as the existing code needs some redesign to integrate On thing that troubles me is that the code makes use of |
Fair point. We have not formally documented our customization points (yet), but we should do so. I think this could look very much like the documentation of the customization points for Boost Spirit. I will try to add comments over time, at least. However, if you have learnt something specific which was not obvious right away, feel free to add that information as a comment to any of those facilities as well. |
The following code snippet printed the wrong output for me. This was printed
not
|
- added test
@dcbdan Thanks for providing the test revealing a data move-problem. This has been fixed now. |
This PR is ready to be merged now |
LGTM! |
This implements a first version of the
split_future
facility.Still missing:
shared_future
This fixes #2239