Re: [PATCH] libstdc++: Replace some implicit conversions in std::vector

2025-06-03 Thread Tomasz Kaminski
On Mon, Jun 2, 2025 at 7:33 PM Jonathan Wakely wrote: > This replaces two implicit conversions from ptrdiff_t to size_t with > explicit conversions that include unreachable hints for the ptrdiff_t > value not being negative. > > libstdc++-v3/ChangeLog: > > * include/bits/stl_vector.h (~_V

[PATCH] libstdc++: Replace some implicit conversions in std::vector

2025-06-02 Thread Jonathan Wakely
This replaces two implicit conversions from ptrdiff_t to size_t with explicit conversions that include unreachable hints for the ptrdiff_t value not being negative. libstdc++-v3/ChangeLog: * include/bits/stl_vector.h (~_Vector_base): Add unreachable hint for negative capacity and