Article View: comp.std.c++
Article #3498Re: The realloc question: rationale?
From: David Vandevoorde
Date: Mon, 26 Feb 1996 01:33
Date: Mon, 26 Feb 1996 01:33
21 lines
1492 bytes
1492 bytes
>>>>> "KK" == Kerry Kimbrough <kk@onr.com> writes: KK> Joe Buck wrote: KK>> You can, of course, call the C realloc(). KK> But then crash? My understanding is that mixture of alloc/free and KK> friends with new/delete is not guaranteed to be valid and KK> therefore is discouraged. Not true? [...] Since you can provide your own new operators etc., you can ensure that it's safe to use realloc with new/delete (or you can provide a function based on realloc with similar functionality). Daveed [ To submit articles: Try just posting with your newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html Comments? mailto:std-c++-request@ncar.ucar.edu ]
Technical Details
Message-ID:
<xsod973w4m5.fsf@glob.cs.rpi.edu>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<4g903m$7g8@mari.onr.com> <4gl2ad$lqi@hermes.synopsys.com> <31301BFE.450A@onr.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: vandevod@cs.rpi.edu (David Vandevoorde) Newsgroups: comp.std.c++ Subject: Re: The realloc question: rationale? Date: 26 Feb 1996 01:33:33 GMT Organization: RPI Computer Science Sender: vandevod@glob.cs.rpi.edu Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <xsod973w4m5.fsf@glob.cs.rpi.edu> References: <4g903m$7g8@mari.onr.com> <4gl2ad$lqi@hermes.synopsys.com> <31301BFE.450A@onr.com> NNTP-Posting-Host: taumet.eng.sun.com X-Nntp-Posting-Host: glob.cs.rpi.edu In-Reply-To: Kerry Kimbrough's message of 25 Feb 1996 16:44:48 GMT X-Newsreader: Gnus v5.1 Originator: clamage@taumet