Skip to content

Fix noexcept(noexcept(is_nothrow_v)) - #1417

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:masterfrom
StephanTLavavej:no_noexcept_noexcept_is_nothrow_v
Nov 7, 2020
Merged

Fix noexcept(noexcept(is_nothrow_v))#1417
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:masterfrom
StephanTLavavej:no_noexcept_noexcept_is_nothrow_v

Conversation

@StephanTLavavej

Copy link
Copy Markdown
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 Stephan T. Lavavej (StephanTLavavej) added bug Something isn't working ranges C++20/23 ranges labels Nov 3, 2020

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.

Awesome eagle eyes

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