Skip to content

Conversation

JMazurkiewicz
Copy link
Contributor

Currently, barrier's constructor is unconditionally noexcept, but according to [thread.barrier.class]/11 this is incorrect. This PR fixes the problem by changing exception specification from noexcept(true) to noexcept(is_nothrow_move_constructible_v<_Completion_function>).

@JMazurkiewicz JMazurkiewicz requested a review from a team as a code owner April 10, 2025 15:19
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Apr 10, 2025
@StephanTLavavej StephanTLavavej self-assigned this Apr 10, 2025
@StephanTLavavej StephanTLavavej added the bug Something isn't working label Apr 10, 2025
@StephanTLavavej StephanTLavavej removed their assignment Apr 14, 2025
@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews Apr 14, 2025
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews Apr 22, 2025
@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 056a3b4 into microsoft:main Apr 22, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from Merging to Done in STL Code Reviews Apr 22, 2025
@StephanTLavavej
Copy link
Member

Thanks for noticing and fixing this bug! 🐞 🕵️ 🛠️

@JMazurkiewicz JMazurkiewicz deleted the thread/barrier-ctor branch April 30, 2025 20:44
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

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants