Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull coroutine does not rethrow an exception if it is thrown on the first entry #13

Closed
ztlpn opened this issue Aug 8, 2017 · 2 comments

Comments

@ztlpn
Copy link

ztlpn commented Aug 8, 2017

Here is the test program: https://gist.github.com/ztlpn/77a0ff1c0537f5ce8f81227c511b028b

I expect that the exception will be rethrown and the program will print Exception: Error, but it prints nothing. If the yield() statement is uncommented, everything is as expected.

I am testing with coroutine2 library from boost 1.64.0.

@olk
Copy link
Member

olk commented Aug 8, 2017

ty, rethrow_exception() was missing in the ctor of pull-coroutine ... fixed in branch develop (unfortunately too late for boost-1.65).

@olk olk closed this as completed Aug 8, 2017
@ztlpn
Copy link
Author

ztlpn commented Aug 8, 2017

Ok, thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants