[libcxx-commits] [libcxx] [libc++] Refactor vector move constructor with allocator (PR #116449)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 18 07:43:28 PST 2024
philnik777 wrote:
> > The advantage of using __init_with_size lies in its internal use of exception guard, thus simplifying the code.
>
> Does this patch add an exception guard that wasn't there before? If so, are we fixing an exception safety issue that we were not handling before? If that's the case, this needs a test.
No, we're simply re-using a different one, which allows us to remove one.
https://github.com/llvm/llvm-project/pull/116449
More information about the libcxx-commits
mailing list