Added another BOOST_ASSERT to enable_shared_from_this::_internal_accept_owner.

[SVN r44499]
This commit is contained in:
Frank Mori Hess
2008-04-17 13:40:44 +00:00
parent 9365853fde
commit 3a578ac7c1

View File

@ -101,6 +101,7 @@ public:
_internal_weak_this = shared_ptr<T>(owner, p);
}else
{
BOOST_ASSERT(owner.unique()); // no weak_ptrs to owner should exist either, but there's no way to check that
detail::sp_deleter_wrapper * pd = get_deleter<detail::sp_deleter_wrapper>(_internal_shared_this);
BOOST_ASSERT( pd != 0 );
pd->set_deleter(owner);