-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Strengthen exception specification for complex
#3880
Strengthen exception specification for complex
#3880
Conversation
Conditional `noexcept` specifications make the strengthening only applied to `complex<float>`, `complex<double>`, and `complex<long double>`.
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 looks good to me!
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...
@strega-nil-ms FYI, I pushed minor fixes and moderate-size Also, I noticed that |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
🦾 🧮 🧑🏫 |
Conditional
noexcept
specifications make the strengthening only applied tocomplex<float>
,complex<double>
, andcomplex<long double>
. Not sure whether unconditionalnoexcept
would be better (should be OK sincecomplex<SomeOtherType>
has unspecified effects).This PR is currently adding
noexcept
to some internal functions declared in<ymath.h>
and some other functions called by them. I hope this is not too aggressive.