[Bug libstdc++/20114] Non-monotonic behavior of string::reserve

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Mon Feb 21 13:37:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list