shared_ptr now autodetects counted_bases; minor test updates; intrusive_ptr no longer calls addref/release for NULL pointers.

[SVN r13602]
This commit is contained in:
Peter Dimov
2002-05-01 11:22:22 +00:00
parent 11eacab70e
commit 4653c3673b
4 changed files with 52 additions and 12 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ public:
}
template<typename Y>
explicit shared_ptr(Y * p): px(p), pn(p, checked_deleter<Y>()) // Y must be complete
explicit shared_ptr(Y * p): px(p), pn(p, checked_deleter<Y>(), p) // Y must be complete
{
}