@@ -35,7 +35,7 @@ auto final_suspend() noexcept(true) {
3535 }
3636
3737 inline auto await_suspend (
38- typename Policy::Coroutine const & coroutine
38+ typename Policy::Coroutine coroutine
3939 ) noexcept (true ) {
4040 if (::std::exchange (suspended_, true )) return false ;
4141 if (! coroutine) return false ;
@@ -73,7 +73,7 @@ auto initial_suspend() noexcept(true) {
7373 }
7474
7575 inline auto await_suspend (
76- Coroutine_ const & coroutine
76+ Coroutine_ coroutine
7777 ) noexcept (true ) {
7878 if (coroutine_) return ;
7979 coroutine_.emplace (nullptr );
@@ -185,7 +185,7 @@ auto await_transform(auto &&awaitable) noexcept(false) {
185185 }
186186
187187 inline static auto await_suspend (
188- ChildCoroutine_ const & coroutine
188+ ChildCoroutine_ coroutine
189189 ) noexcept (true ) { return coroutine.promise ().context_ .parent ; }
190190
191191 inline constexpr static auto await_resume () noexcept (true ) {}
@@ -226,7 +226,7 @@ auto await_transform(auto &&awaitable) noexcept(false) {
226226 return false ;
227227 }
228228
229- inline auto await_suspend (Coroutine_ const & coroutine) noexcept (false ) {
229+ inline auto await_suspend (Coroutine_ coroutine) noexcept (false ) {
230230 if (
231231 (! coroutine) || coroutine.done ()
232232 ) throw ::std::invalid_argument{" bad coroutine" };
@@ -305,7 +305,7 @@ auto await_transform(auto &&awaitable) noexcept(false) {
305305 ChildCoroutine_ coroutine;
306306
307307 inline ChildTask_ (
308- ChildCoroutine_ const & coroutine
308+ ChildCoroutine_ coroutine
309309 ) noexcept (true ): coroutine{coroutine} {}
310310 };
311311
0 commit comments