Skip to content

Commit

Permalink
Add deduction guide to co_result
Browse files Browse the repository at this point in the history
Reviewed By: yfeldblum, lewissbaker

Differential Revision: D23240860

fbshipit-source-id: 74aab6151c9c44159a2d3fc4e041b475b69e29e7
  • Loading branch information
iahs authored and facebook-github-bot committed Aug 20, 2020
1 parent c4c78b8 commit 694c1cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions folly/experimental/coro/Task.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ class co_result final {
Try<T> result_;
};

template <class T>
co_result(Try<T>)->co_result<T>;

namespace detail {

class TaskPromiseBase {
Expand Down

0 comments on commit 694c1cb

Please sign in to comment.