Test w/ NULL pointer to enabled_... object added; bug fixed.

[SVN r16402]
This commit is contained in:
Peter Dimov committed 2002-11-25 12:17:56 +00:00
1 parent 1311731e24
commit 9632464c45
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ template<> struct shared_ptr_traits<void const>
template<class T, class Y> void sp_enable_shared_from_this(boost::enable_shared_from_this<T> * pe, Y * px, shared_count const & pn)
{
pe->_internal_weak_this._internal_assign(px, pn);
if(pe != 0) pe->_internal_weak_this._internal_assign(px, pn);
}
inline void sp_enable_shared_from_this(void const *, void const *, shared_count const &)