This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: debug/vector anomalous behaviour
Hi,
my impression is that you are right that the code, due to the reserve in the conditional, is unconditionally safe, thus must run fine also in pedantic mode. I solicit more feedback from the other people in your team and Doug about that. I will also give the issue more thought myself over the next hours. On the other hand, I think that exposing to the user of the debug-mode vector a capacity which follow the normal semantics cannot be the way to go...
Paolo.