1 #ifndef BOOSTER_SMART_PTR_ENABLE_SHARED_FROM_THIS_HPP_INCLUDED
2 #define BOOSTER_SMART_PTR_ENABLE_SHARED_FROM_THIS_HPP_INCLUDED
16 #include <booster/weak_ptr.h>
17 #include <booster/shared_ptr.h>
19 #include <booster/config.h>
56 assert( p.get() == this );
63 assert( p.get() == this );
70 template<
class X,
class Y>
void _internal_accept_owner(
shared_ptr<X> const * ppx, Y * py )
const
72 if( weak_this_.expired() )
85 #endif // #ifndef BOOST_SMART_PTR_ENABLE_SHARED_FROM_THIS_HPP_INCLUDED
This class is borrowed from boost.
Definition: enable_shared_from_this.h:30