Update of /cvsroot/boost-sandbox/boost-sandbox/boost
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9324
Modified Files:
deconstruct_ptr.hpp
Log Message:
Use checked_delete().
Index: deconstruct_ptr.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/deconstruct_ptr.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- deconstruct_ptr.hpp 20 Feb 2007 00:40:44 -0000 1.3
+++ deconstruct_ptr.hpp 23 Feb 2007 14:38:13 -0000 1.4
@@ -11,6 +11,7 @@
#ifndef BOOST_DECONSTRUCT_PTR_HEADER
#define BOOST_DECONSTRUCT_PTR_HEADER
+#include <boost/checked_delete.hpp>
#include <boost/postconstructible.hpp>
#include <boost/predestructible.hpp>
#include <boost/shared_ptr.hpp>
@@ -34,7 +35,7 @@
void operator()(T *ptr)
{
m_predestruct(ptr);
- delete ptr;
+ checked_delete(ptr);
}
private:
void m_predestruct(...)
|