Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use LWG-3518 to add noexcept #2080

Merged
merged 1 commit into from
Jul 30, 2021
Merged

Conversation

CaseyCarter
Copy link
Member

... 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 CaseyCarter added the LWG Library Working Group issue label Jul 26, 2021
@CaseyCarter CaseyCarter requested a review from a team as a code owner July 26, 2021 21:13
@CaseyCarter CaseyCarter mentioned this pull request Jul 26, 2021
36 tasks
@@ -698,7 +698,7 @@ constexpr size_t _Traits_rfind_ch(_In_reads_(_Hay_size) const _Traits_ptr_t<_Tra
template <class _Elem, bool = _Is_character<_Elem>::value>
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
Member 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
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 StephanTLavavej merged commit 6a53cf2 into microsoft:main Jul 30, 2021
@StephanTLavavej
Copy link
Member

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

@CaseyCarter
Copy link
Member Author

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

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

@CaseyCarter CaseyCarter deleted the lwg3518 branch August 2, 2021 20:54
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