This is the mail archive of the gcc@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]

Re: malloc/free & new/delete balance


> *You* try to write a requirement that the storage is re-used without
> actually specifying an algorithm.  The C committee gave up, and the
> C++ committee doesn't claim to be (much :) smarter.

How about listing some minimum requirement, like:

if an object is freed, and the next allocation is for an object of the
same size, that allocation will succeed.


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