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

<__msvc_int128.hpp>: Move UDLs to test code #3252

Merged
merged 4 commits into from
Dec 6, 2022

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Dec 1, 2022

Fixes #3240.

It was my decision to add these UDLs to product code in order to provide a solution for DevCom-879048. But it turns out that this is non-goal, and thus it was my fault to do so.

Per discussions in #3240, these UDLs should be moved into the test code. I decided to make these identifiers non-_Ugly despite that it may be OK not to do so.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner December 1, 2022 15:44
Copy link
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

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

Thank you for moving these over!

@frederick-vs-ja
Copy link
Contributor Author

I (again) misused if constexpr in C++14 mode and encountered a clang's bug (probably LLVM-51840).

@CaseyCarter CaseyCarter added the throughput Must compile faster label Dec 1, 2022
Copy link
Member

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

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

Some minor nits for which I'll push changes.

tests/std/tests/P1522R1_difference_type/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P1522R1_difference_type/test.cpp Outdated Show resolved Hide resolved
tests/std/tests/P1522R1_difference_type/test.cpp Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej self-assigned this Dec 5, 2022
@StephanTLavavej
Copy link
Member

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

@StephanTLavavej StephanTLavavej merged commit 54ac725 into microsoft:main Dec 6, 2022
@StephanTLavavej
Copy link
Member

Thanks again for this throughput improvement! 😻 🚀 🎉

@frederick-vs-ja frederick-vs-ja deleted the move-i128-udl branch December 7, 2022 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
throughput Must compile faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<__msvc_int128.hpp>: UDLs aren't used by product code
4 participants
  翻译: