Skip to content

Speculatively implement LWG-3234: Sufficient Additional Special Math Overloads - #2703

Merged
Stephan T. Lavavej (StephanTLavavej) merged 9 commits into
microsoft:mainfrom
frederick-vs-ja:lwg-3234
May 5, 2022
Merged

Stephan T. Lavavej (StephanTLavavej) merged 9 commits into
microsoft:mainfrom
frederick-vs-ja:lwg-3234

Conversation

@frederick-vs-ja

Copy link
Copy Markdown
Contributor

Fixes #910.

IIUC LWG-3234 will be resolved by the recently approved paper WG21-P1467, so perhaps it is not speculative to implement the resolution.

No separated float/long double overloads are added according to #1335. I've filed LWG-3693 for this. I'm not sure whether non-template double overloads can be removed.

I'm also strengthening exception specifications of math special functions as the underlying operations only call noexcept functions, and updating comments to reference WG21-N4910.

LWG-3234 is resolved by WG21-P1467, which has been approved.
Also strengthen exception specifications of math special functions and update comments to reference N4910.
float/long double overloads are not added at this moment (LWG-3693).
@frederick-vs-ja
A. Jiang (frederick-vs-ja) requested a review from a team as a code owner May 4, 2022 02:17

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing! Thank you.

Comment thread stl/inc/cmath Outdated
Comment thread stl/inc/cmath Outdated
Comment thread stl/inc/cmath Outdated
Comment thread tests/std/tests/LWG3234_math_special_overloads/test.cpp Outdated
Comment thread tests/std/tests/LWG3234_math_special_overloads/test.cpp Outdated
@CaseyCarter Casey Carter (CaseyCarter) added the bug Something isn't working label May 4, 2022
@CaseyCarter

Copy link
Copy Markdown
Contributor

⚠️ Note to Stephan:

Remember to export the 21 new overloads.

Comment thread stl/inc/cmath Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit c183fa8 into microsoft:main May 5, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for implementing these special overloads! 😻 ✨ 🧮

@frederick-vs-ja
A. Jiang (frederick-vs-ja) deleted the lwg-3234 branch May 5, 2022 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<cmath>: Missing "sufficient additional overloads" for mathematical special functions

3 participants