Topic: Why was delete() defined as delete(void*) instead of
Author: hyrosen@mail.com (Hyman Rosen)
Date: Mon, 11 Apr 2005 15:07:55 GMT Raw View
Marcel Loose wrote:
> How can an implementation zero out the pointer when the pointer is passed by
> value to delete??
The implementation includes the compiler. If you write 'delete lvalue;' the
compiler can append an 'lvalue = 0;' afterwards.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]