mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-11-28 21:19:26 +01:00
Debug hook support moved to shared_count.
[SVN r16325]
This commit is contained in:
@@ -76,12 +76,6 @@ template<> struct shared_ptr_traits<void const>
|
|||||||
// is destroyed or reset.
|
// is destroyed or reset.
|
||||||
//
|
//
|
||||||
|
|
||||||
#if defined(BOOST_SP_ENABLE_CONSTRUCTOR_HOOK)
|
|
||||||
|
|
||||||
void shared_ptr_constructor_hook(void * p);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
template<class T> class weak_ptr;
|
template<class T> class weak_ptr;
|
||||||
template<class T> class enable_shared_from_this;
|
template<class T> class enable_shared_from_this;
|
||||||
|
|
||||||
@@ -119,10 +113,6 @@ public:
|
|||||||
explicit shared_ptr(Y * p): px(p), pn(p, checked_deleter<Y>()) // Y must be complete
|
explicit shared_ptr(Y * p): px(p), pn(p, checked_deleter<Y>()) // Y must be complete
|
||||||
{
|
{
|
||||||
sp_enable_shared_from_this(p);
|
sp_enable_shared_from_this(p);
|
||||||
|
|
||||||
#if defined(BOOST_SP_ENABLE_CONSTRUCTOR_HOOK)
|
|
||||||
shared_ptr_constructor_hook(p);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user