Skip to content

Conversation

@StephanTLavavej
Copy link
Member

Noticed while reviewing #1406.

noexcept(noexcept(is_nothrow_v)) is a mistake (it's always noexcept(true)). We intended noexcept(is_nothrow_v) here.

These appear to be the only occurrences that we've accumulated so far; I searched with all of my regex powers.

(It's unfortunate that the language repurposes the keyword with a different meaning here, and it's unfortunate that neither MSVC nor Clang warn about this.)

@StephanTLavavej StephanTLavavej added bug Something isn't working ranges C++20/23 ranges labels Nov 3, 2020
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner November 3, 2020 09:21
Copy link
Contributor

@miscco miscco left a comment

Choose a reason for hiding this comment

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

Awesome eagle eyes

StephanTLavavej added a commit to StephanTLavavej/STL that referenced this pull request Nov 5, 2020
@StephanTLavavej StephanTLavavej self-assigned this Nov 5, 2020
StephanTLavavej added a commit to StephanTLavavej/STL that referenced this pull request Nov 5, 2020
@StephanTLavavej StephanTLavavej merged commit 0249612 into microsoft:master Nov 7, 2020
@StephanTLavavej StephanTLavavej deleted the no_noexcept_noexcept_is_nothrow_v branch November 7, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ranges C++20/23 ranges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants