Skip to content

<optional>: Fix exception specification for optional's transform-construction - #3668

Merged
Stephan T. Lavavej (StephanTLavavej) merged 9 commits into
microsoft:mainfrom
frederick-vs-ja:optional-transform-noexcept
Apr 28, 2023
Merged

Stephan T. Lavavej (StephanTLavavej) merged 9 commits into
microsoft:mainfrom
frederick-vs-ja:optional-transform-noexcept

Conversation

@frederick-vs-ja

Copy link
Copy Markdown
Contributor

Fixes #3667.

@frederick-vs-ja
A. Jiang (frederick-vs-ja) requested a review from a team as a code owner April 24, 2023 02:20
Comment thread stl/inc/optional Outdated
making the exception specification consistent with `expected`

Co-authored-by: S. B. Tam <cpplearner@outlook.com>

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.

Oh wow, we totally missed that. Thanks for the fix, A. Jiang (@frederick-vs-ja)!

Comment thread tests/std/tests/P0798R8_monadic_operations_for_std_optional/test.cpp Outdated
Comment thread tests/std/tests/P0798R8_monadic_operations_for_std_optional/test.cpp Outdated
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks! FYI nicole mazzuca (@strega-nil-ms) I pushed an expansion of test coverage after you approved.

@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 c5a5efa into microsoft:main Apr 28, 2023
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for fixing this bug in new code! 🐞 🛠️ 😻

@frederick-vs-ja
A. Jiang (frederick-vs-ja) deleted the optional-transform-noexcept branch April 28, 2023 23:09
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.

<optional>: Throwing transformers will cause the program to terminate

4 participants