From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2003-05-14 05:39:09
In one of Herb Sutters articles I saw that
after deleting a pointer (a pimpl) he assigns 0 afterwards
which seems to me like a good idea.
(see e.g. http://www.gotw.ca/gotw/028.htm or http://tinyurl.com/bq8o)
Maybe there is a good reason (efficiency?)
why checked_delete omits this extra step.
template<class T> inline void checked_delete(T * x)
typedef char type_must_be_complete[sizeof(T)];
// why not ?
x = 0;
-- Compile time analytic differentiation? Yes, at http://daixtrose.sourceforge.net/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk