DARMA-tasking-internal / darma-frontend

Header library providing the frontend programming model for the DARMA asynchronous many-task model
Other
7 stars 0 forks source link

Allow create_work to return an AccessHandle #14

Open jjwilke opened 7 years ago

jjwilke commented 7 years ago

This should correspond to the return type of the callable.

jjwilke commented 7 years ago

Will this be allowed for both functors and lambdas?

dhollman commented 7 years ago

This one is tricky. It has the same problem we discussed for the return value of handle.reduce(...), and for roughy the same reasons. If we want to think of assigning a return value in terms of std::unique_ptr<>-like semantics, rather than a hint to reuse storage of the left-hand side, this is much easier. I'm starting to lean that way anyway for other reasons.