From 45c799f40cd7afec8c7a1fe8045649784dc7ee7e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 19 Nov 2002 16:18:58 +0000 Subject: [PATCH] Debug hook support moved to shared_count. [SVN r16325] --- include/boost/shared_ptr.hpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index 6357fff..e429571 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -76,12 +76,6 @@ template<> struct shared_ptr_traits // is destroyed or reset. // -#if defined(BOOST_SP_ENABLE_CONSTRUCTOR_HOOK) - -void shared_ptr_constructor_hook(void * p); - -#endif - template class weak_ptr; template class enable_shared_from_this; @@ -119,10 +113,6 @@ public: explicit shared_ptr(Y * p): px(p), pn(p, checked_deleter()) // Y must be complete { sp_enable_shared_from_this(p); - -#if defined(BOOST_SP_ENABLE_CONSTRUCTOR_HOOK) - shared_ptr_constructor_hook(p); -#endif } // @@ -156,7 +146,7 @@ public: template shared_ptr(shared_ptr const & r, detail::dynamic_cast_tag): px(dynamic_cast(r.px)), pn(r.pn) { - if (px == 0) // need to allocate new counter -- the cast failed + if(px == 0) // need to allocate new counter -- the cast failed { pn = detail::shared_count(); }