From 0734aa18c1d9ea293c0cf0aca956f1dc24f72531 Mon Sep 17 00:00:00 2001 From: Lunar-YZ <49775921+Lunar-YZ@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:29:07 +0800 Subject: [PATCH 1/2] Fixed the Stack unwinding doc error --- doc/asymmetric.qbk | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/asymmetric.qbk b/doc/asymmetric.qbk index 990ccb8..09e7256 100644 --- a/doc/asymmetric.qbk +++ b/doc/asymmetric.qbk @@ -275,22 +275,22 @@ After unwinding, a __coro__ is complete. struct X { X(){ - std::cout<<"X()"<::push_type coro_t; + typedef boost::coroutines2::coroutine coro_t; coro_t::push_type sink( [&](coro_t::pull_type& source){ X x; - for(int=0;;++i){ - std::cout<<"fn(): "< Date: Tue, 2 Jan 2024 10:38:42 +0800 Subject: [PATCH 2/2] Update asymmetric.qbk --- doc/asymmetric.qbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/asymmetric.qbk b/doc/asymmetric.qbk index 09e7256..6473cf8 100644 --- a/doc/asymmetric.qbk +++ b/doc/asymmetric.qbk @@ -289,7 +289,7 @@ After unwinding, a __coro__ is complete. coro_t::push_type sink( [&](coro_t::pull_type& source){ X x; - for(int i = 0; ;++i){ + for(int i = 0; ; ++i){ std::cout << "fn(): " << i << std::endl; // transfer execution control back to main() source();