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

<numeric>: switch transform_reduce from direct list initialization to copy non-list initialization #4260

Merged
merged 7 commits into from
Jan 11, 2024

Conversation

yqZhang4480
Copy link
Contributor

@yqZhang4480 yqZhang4480 commented Dec 14, 2023

Fixes #4129.

use implicit conversion instead of brace initialization
@yqZhang4480 yqZhang4480 requested a review from a team as a code owner December 14, 2023 11:19
@yqZhang4480 yqZhang4480 reopened this Dec 14, 2023
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja left a comment

Choose a reason for hiding this comment

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

LGTM. However, it seems preferred to add a test case to the related test file (tests/std/tests/P0024R2_parallel_algorithms_transform_reduce/test.cpp).

@yqZhang4480

This comment was marked as resolved.

@yqZhang4480

This comment was marked as resolved.

@fsb4000

This comment was marked as resolved.

@strega-nil-ms strega-nil-ms changed the title To fix #4129 <numeric>: switch transform_reduce from direct list initialization to copy non-list initialization Dec 14, 2023
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Dec 16, 2023
@StephanTLavavej StephanTLavavej self-assigned this Dec 16, 2023
@StephanTLavavej
Copy link
Member

Thanks, this looks great! Apologies for the holiday-induced delay in getting this reviewed. I pushed a commit for minor stylistic issues I noticed.

@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 9ce3d4b into microsoft:main Jan 11, 2024
35 checks passed
@StephanTLavavej
Copy link
Member

Thanks for fixing this bug and congratulations on your first microsoft/STL commit! 🎉 😻 🚀

This is expected to ship in VS 2022 17.10 Preview 1.

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.

<numeric>: Parallel transform_reduce incorrectly uses list-initialization
5 participants