[libcxx-commits] [libcxx] [libc++] Fix vector::append_range growing before the capacity is reached (PR #183264)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 25 07:41:16 PST 2026
================
@@ -52,8 +52,17 @@ constexpr bool test() {
v.reserve(v.size() + std::ranges::size(in));
assert(v.capacity() >= v.size() + std::ranges::size(in));
----------------
ldionne wrote:
This assertion isn't really useful, and IMO it makes it less clear what we're actually trying to test. I'd remove it.
https://github.com/llvm/llvm-project/pull/183264
More information about the libcxx-commits
mailing list