[libcxx-commits] [libcxx] [libc++] Introduce a standalone __scope_guard and use it in <string> (PR #114867)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 11 02:48:24 PST 2024
================
@@ -2548,7 +2556,6 @@ _LIBCPP_DEPRECATED_("use __grow_by_without_replace") basic_string<_CharT, _Trait
pointer __old_p = __get_pointer();
size_type __cap =
__old_cap < __ms / 2 - __alignment ? __recommend(std::max(__old_cap + __delta_cap, 2 * __old_cap)) : __ms - 1;
- __annotate_delete();
----------------
philnik777 wrote:
Yes. The annotations are now handled through `__grow_by_without_replace` below to avoid adding and removing annotations across function boundaries.
https://github.com/llvm/llvm-project/pull/114867
More information about the libcxx-commits
mailing list