Add a self-assignment assert to reset(). Also add an overload of reset to

allow resetting to a new pointer with a new deletion function.


[SVN r12491]
This commit is contained in:
Darin Adler committed 2002-01-24 19:16:12 +00:00
1 parent 09c1476063
commit 5d564a2f01
4 files changed
+10 -1

No files matched your search

+1
View File
@@ -71,6 +71,7 @@ public:
void reset(T * p = 0)
{
BOOST_ASSERT(p == 0 || p != px);
this_type(p).swap(*this);
}