diff --git a/include/string b/include/string index 7218aa2e4..bfdd141cd 100644 --- a/include/string +++ b/include/string @@ -1259,7 +1259,7 @@ public: _LIBCPP_INLINE_VISIBILITY bool __invariants() const; - _LIBCPP_INLINE_VISIBILITY void __clear_and_shrink(); + _LIBCPP_INLINE_VISIBILITY void __clear_and_shrink() _NOEXCEPT; _LIBCPP_INLINE_VISIBILITY bool __is_long() const _NOEXCEPT @@ -3585,7 +3585,7 @@ basic_string<_CharT, _Traits, _Allocator>::__invariants() const template inline _LIBCPP_INLINE_VISIBILITY void -basic_string<_CharT, _Traits, _Allocator>::__clear_and_shrink() +basic_string<_CharT, _Traits, _Allocator>::__clear_and_shrink() _NOEXCEPT { clear(); if(__is_long())