This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]