mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-11 13:34:08 +00:00
Fixing example code in undefined behaviour
This commit is contained in:
parent
98e7406a40
commit
9dde80b712
@ -76,7 +76,7 @@ As an example, the code below will result in undefined behaviour:
|
|||||||
|
|
||||||
boost::coroutines2::coroutine<void>::push_type coro(
|
boost::coroutines2::coroutine<void>::push_type coro(
|
||||||
[&](boost::coroutines2::coroutine<void>::pull_type& yield){
|
[&](boost::coroutines2::coroutine<void>::pull_type& yield){
|
||||||
yield();
|
coro();
|
||||||
});
|
});
|
||||||
coro();
|
coro();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user