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(); }