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
[unique.ptr.single] Rephrase destruction #4736
Conversation
@CaseyCarter , @jwakely, what do you think? |
@jwakely , ping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems equivalent to me, but makes me wonder why we originally chose UB if the deletion throws vs. simply letting the exception slam into noexcept
. @jwakely, does that seem worth a followup library issue?
We already got one: https://cplusplus.github.io/LWG/issue3588 It was promptly closed as NAD. My preference was to just rely on the |
@tkoeppe , looks like this is ready. |
Because it's undefined with the current spec, it's theoretically possible for the implementation to omit the EH code to call |
(Sorry, off-topic.)
Ironically enough, we have |
Supersedes #2962