Topic: Deleting pointers more than once


Author: rfg@netcom.com (Ronald F. Guilmette)
Date: Wed, 8 Dec 1993 09:13:01 GMT
Raw View
In article <2d1ieq$i07@hpscit.sc.hp.com> bhobesm@sgp.hp.com (BHOBE Suyog Mahadeo) writes:
>What is the effect of deleting the same pointer more then once?

The current C++ standardization committee draft says (in effect) that a
conforming program must not "access" a deleted object.

Note however that the term "access" has yet to be defined.

>Is it likely to cause problems?

In current implementations, yes.  Quite probably.

(Follow-ups to comp.std.c++ please.)

--

-- Ronald F. Guilmette, Sunnyvale, California -------------------------------
------ domain address: rfg@netcom.com ---------------------------------------
------ uucp address: ...!uunet!netcom.com!rfg -------------------------------