@@ -1025,7 +1025,7 @@ public:
10251025 // Turning off ASan instrumentation for variable initialization with _LIBCPP_STRING_INTERNAL_MEMORY_ACCESS
10261026 // does not work consistently during initialization of __r_, so we instead unpoison __str's memory manually first.
10271027 // __str's memory needs to be unpoisoned only in the case where it's a short string.
1028- : __r_([](basic_string& __s) -> decltype (__s.__r_)&& {
1028+ : __r_([](basic_string& __s) -> decltype (__s.__r_) && {
10291029 if (!__s.__is_long ())
10301030 __s.__annotate_delete ();
10311031 return std::move (__s.__r_ );
@@ -2277,8 +2277,8 @@ template <class _CharT,
22772277 class _Traits ,
22782278 class _Allocator = allocator<_CharT>,
22792279 class = enable_if_t <__is_allocator<_Allocator>::value> >
2280- explicit basic_string (basic_string_view<_CharT, _Traits>,
2281- const _Allocator& = _Allocator()) -> basic_string<_CharT, _Traits, _Allocator>;
2280+ explicit basic_string (basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator())
2281+ -> basic_string<_CharT, _Traits, _Allocator>;
22822282
22832283template <class _CharT ,
22842284 class _Traits ,
@@ -2483,7 +2483,9 @@ _LIBCPP_CONSTEXPR_SINCE_CXX20 void basic_string<_CharT, _Traits, _Allocator>::__
24832483 __throw_length_error ();
24842484 pointer __old_p = __get_pointer ();
24852485 size_type __cap =
2486- __old_cap < __ms / 2 - __alignment ? __recommend (std::max (__old_cap + __delta_cap, 2 * __old_cap)) : __ms - 1 ;
2486+ __old_cap < __ms / 2 - __alignment
2487+ ? __recommend (std::max<size_type>(__old_cap + __delta_cap, 2 * __old_cap))
2488+ : __ms - 1 ;
24872489 __annotate_delete ();
24882490 auto __allocation = std::__allocate_at_least (__alloc (), __cap + 1 );
24892491 pointer __p = __allocation.ptr ;
@@ -2526,7 +2528,9 @@ _LIBCPP_DEPRECATED_("use __grow_by_without_replace") basic_string<_CharT, _Trait
25262528 __throw_length_error ();
25272529 pointer __old_p = __get_pointer ();
25282530 size_type __cap =
2529- __old_cap < __ms / 2 - __alignment ? __recommend (std::max (__old_cap + __delta_cap, 2 * __old_cap)) : __ms - 1 ;
2531+ __old_cap < __ms / 2 - __alignment
2532+ ? __recommend (std::max<size_type>(__old_cap + __delta_cap, 2 * __old_cap))
2533+ : __ms - 1 ;
25302534 __annotate_delete ();
25312535 auto __allocation = std::__allocate_at_least (__alloc (), __cap + 1 );
25322536 pointer __p = __allocation.ptr ;
0 commit comments