[patch][google/integration] Add lightweight checks to vector::begin et. al. (issue4973065)
Diego Novillo
dnovillo@google.com
Tue Sep 6 16:55:00 GMT 2011
On Tue, Sep 6, 2011 at 12:28, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> Greetings,
>
> This patch adds a lightweight self-consistency check to many vector
> operations. Google issue 5246356.
>
> Ok for google/integration branch?
>
> Thanks,
> --
>
>
> 2011-09-06 Paul Pluzhnikov <ppluzhnikov@google.com>
>
> * include/bits/stl_vector.h (__is_valid): New function.
> (begin, end, size, capacity, swap, clear): Call it.
> * include/bits/vector.tcc (operator=): Likewise.
OK. Any reason not to send this (or a variant) to mainline?
Diego.
More information about the Gcc-patches
mailing list