Skip to content

Use LWG-3518 to add noexcept - #2080

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
CaseyCarter:lwg3518
Jul 30, 2021
Merged

Use LWG-3518 to add noexcept#2080
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
CaseyCarter:lwg3518

Conversation

@CaseyCarter

Copy link
Copy Markdown
Contributor

... to code that calls character trait operations. We already made this assumption at the vast majority of callsites, this simply adds the few I found when auditing.

"Implements" LWG-3518.

... to code that calls character trait operations. We already made this assumption at the vast majority of callsites, this simply adds the few I found when auditing.
@CaseyCarter Casey Carter (CaseyCarter) added the LWG Library Working Group issue label Jul 26, 2021
@CaseyCarter
Casey Carter (CaseyCarter) requested a review from a team as a code owner July 26, 2021 21:13
Comment thread stl/inc/xstring
class _String_bitmap { // _String_bitmap for character types
public:
constexpr bool _Mark(const _Elem* _First, const _Elem* const _Last) {
constexpr bool _Mark(const _Elem* _First, const _Elem* const _Last) noexcept {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Honestly, these four added noexcepts have nothing to do with LWG-3518 or character trait operations, I simply noticed in passing that they are do not emit exceptions when operating on character-like types.

@StephanTLavavej

Copy link
Copy Markdown
Member

I'm going to add this to the next batch of changes to merge - please notify me if any further commits are pushed.

@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for looking into every LWG issue, no exceptions! 😹 🎉 🚀

@CaseyCarter

Copy link
Copy Markdown
Contributor Author

Thanks for looking into every LWG issue, no exceptions! 😹 🎉 🚀

Yes, this PR is truly 😃 ... 😎 exceptional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LWG Library Working Group issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants