Fixing example code in undefined behaviour

This commit is contained in:
Saliya Hamparawa 2018-04-20 14:53:37 +05:30 committed by GitHub
parent 98e7406a40
commit 9dde80b712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>::pull_type& yield){
yield();
coro();
});
coro();