File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 6
6
#include < coroutine>
7
7
8
8
namespace cppcoro {
9
- template <typename Promise=void >
10
- using coroutine_handle = std::coroutine_handle<Promise>;
11
-
12
- using suspend_always = std::suspend_always;
13
- using suspend_never = std::suspend_never;
14
- static inline auto noop_coroutine () { return std::noop_coroutine (); }
9
+ using std::coroutine_handle;
10
+ using std::suspend_always;
11
+ using std::noop_coroutine;
12
+ using std::suspend_never;
15
13
}
16
14
17
15
#elif __has_include(<experimental/coroutine>)
18
16
19
17
#include < experimental/coroutine>
20
18
21
19
namespace cppcoro {
22
- template <typename Promise=void >
23
- using coroutine_handle = std::experimental::coroutine_handle<Promise>;
24
-
25
- using suspend_always = std::experimental::suspend_always;
26
- using suspend_never = std::experimental::suspend_never;
27
- static inline auto noop_coroutine () { return std::experimental::noop_coroutine (); }
20
+ using std::experimental::coroutine_handle;
21
+ using std::experimental::suspend_always;
22
+ using std::experimental::suspend_never;
23
+ using std::experimental::noop_coroutine;
28
24
}
29
25
30
26
#else
You can’t perform that action at this time.
0 commit comments