]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix obvious mistake in inplace_vector::assign_range [PR119137]
authorTomasz Kamiński <tkaminsk@redhat.com>
Tue, 22 Jul 2025 07:32:47 +0000 (09:32 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Tue, 22 Jul 2025 07:33:05 +0000 (09:33 +0200)
commitae00818713756fd45ee379a8a30ae907959433fe
tree127743273d75eaef0867e98895476523fabe33f9
parent7698f886e1f61335eeb7af2e68fb6fb1c07a7256
libstdc++: Fix obvious mistake in inplace_vector::assign_range [PR119137]

In case of input iterators, the loop that assigns to existing elements
should run up to number of elements in vector (_M_size) not capacity (_Nm).

PR libstdc++/119137

libstdc++-v3/ChangeLog:

* include/std/inplace_vector (inplace_vector::assign_range):
Replace _Nm with _M_size in the assigment loop.
libstdc++-v3/include/std/inplace_vector