-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
... 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.
@@ -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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, these four added noexcept
s 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.
I'm going to add this to the next batch of changes to merge - please notify me if any further commits are pushed. |
Thanks for looking into every LWG issue, no exceptions! 😹 🎉 🚀 |
Yes, this PR is truly 😃 ... 😎 exceptional. |
... 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.