-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Mark several functions as noexcept. #1937
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
Conversation
|
If I'm not mistaken, if it's not specified as noexcept in the standard then they need to be commented as |
|
I've pushed a merge with |
|
I merged |
CaseyCarter
left a comment
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.
Publishing an ancient partial review.
… on x86 when calling these functions from code that is marked noexcept.
36c1c3f to
73e8da6
Compare
|
Merge conflicts need to be resolved now that #1347 has landed. 🛬 |
|
Merged (and fixed an issue I noticed while merging) |
StephanTLavavej
left a comment
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.
Thanks! I'll validate and push changes for the small issues I found (only one was significant, regarding a missing noexcept annotation on the tagged base class constructor).
strega-nil-ms
left a comment
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.
Marking request changes as I do not wish to merge without finishing the {_Implicitly_convert_to, _Fake_decay_copy, _Fake_copy_init} discussion.
This reverts commit 47d5dd2.
|
We've decided to go with @strega-nil-ms's proposed unification to |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
@ThomasFWise Thanks for strengthening these exception specifications, and congratulations on your first microsoft/STL commit! Also thanks to @strega-nil-ms for landing this PR! 🎉 😻 🦾 |
This can be important for performance on x86 when calling these functions from code that is marked noexcept.
Drive by: fix
optional::operator CMPto correctly only expect an implicit conversion tobool; example fail: https://gcc.godbolt.org/z/xojTqn3vx