From 3a578ac7c147d1bf0fa232fdac66562aa680841b Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 17 Apr 2008 13:40:44 +0000 Subject: [PATCH] Added another BOOST_ASSERT to enable_shared_from_this::_internal_accept_owner. [SVN r44499] --- include/boost/enable_shared_from_this.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/enable_shared_from_this.hpp b/include/boost/enable_shared_from_this.hpp index 99c68ba..f474714 100644 --- a/include/boost/enable_shared_from_this.hpp +++ b/include/boost/enable_shared_from_this.hpp @@ -101,6 +101,7 @@ public: _internal_weak_this = shared_ptr(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(_internal_shared_this); BOOST_ASSERT( pd != 0 ); pd->set_deleter(owner);