This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/20114] Non-monotonic behavior of string::reserve
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2005 22:18:42 -0000
- Subject: [Bug libstdc++/20114] Non-monotonic behavior of string::reserve
- References: <20050220214129.20114.kreckel@ginac.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2005-02-20 22:18 -------
Note that, according to the standard, after a call to reserve(n), the *only*
guarantee is that capacity >= n. I'm going to look a bit into this, but will
change the current behavior, which results from the interaction for very special
values of n of two well founded strategies - standard mandated exponential grow
policy + smart requests to malloc - only if a fix is *really* clean.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-02-20 22:18:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20114