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

US062 09.04.4 [dcl.fct.def.coroutine].5 Make unhandled_exception in promise types optional P2100 #61

Closed
wg21bot opened this issue Oct 23, 2019 · 4 comments
Labels
coroutines Coroutines EWG Evolution
Milestone

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Oct 23, 2019

Coroutine promise types are currently required to define an unhandled_exception member function. For many simple promise types, the definition of this function is simple and trivial; it just rethrows. It is unfortunate that authors of promise types are required to write this boilerplate. Many other coroutine extension points are only used if they exist, but this one is required. It would be nice if it was not required for noexcept coroutines.

Proposed change:
If the coroutine is noexcept, do not wrap the invocation of the function body in a try/catch block and do not require that promise types define an unhandled_exception method.

@jfbastien

This comment has been minimized.

@jfbastien
Copy link
Collaborator

jfbastien commented Nov 4, 2019

EWG Monday: http://wiki.edg.com/bin/view/Wg21belfast/US062

US062 Does EWG want to consider this for C++20

F A
18 0

Motion passes. Gor, Michal and Lewis to come back with a paper.

@jfbastien
Copy link
Collaborator

jfbastien commented Jan 18, 2020

See P2100

@jensmaurer jensmaurer changed the title US062 09.04.4 [dcl.fct.def.coroutine].5 Make unhandled_exception in promise types optional US062 09.04.4 [dcl.fct.def.coroutine].5 Make unhandled_exception in promise types optional P2014 Jan 19, 2020
@jfbastien jfbastien changed the title US062 09.04.4 [dcl.fct.def.coroutine].5 Make unhandled_exception in promise types optional P2014 US062 09.04.4 [dcl.fct.def.coroutine].5 Make unhandled_exception in promise types optional P2100 Feb 11, 2020
@jfbastien
Copy link
Collaborator

Based on discussion of D2100R0 Keep unhandled_exception of a promise type mandatory - a response to US062 and FR066

Reject US062 and FR066

SF F N A SA
12 8 1 0 0

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

No branches or pull requests

3 participants