--- /usr/include/boost/enable_shared_from_this.hpp 2004-07-25 20:31:58.000000000 -0400 +++ ./enable_shared_from_this.hpp 2007-02-06 16:34:52.000000000 -0500 @@ -21,7 +21,7 @@ namespace boost { -template class enable_shared_from_this +template class enable_shared_from_this { protected: @@ -43,6 +43,7 @@ } public: + void postconstruct() {} shared_ptr shared_from_this() { @@ -62,6 +63,30 @@ mutable weak_ptr<_internal_element_type> _internal_weak_this; }; +template class enable_shared_from_this: public enable_shared_from_this +{ +protected: + + enable_shared_from_this() + { + } + + enable_shared_from_this(enable_shared_from_this const &) + { + } + + enable_shared_from_this & operator=(enable_shared_from_this const &) + { + return *this; + } + + virtual ~enable_shared_from_this() + { + } + +public: + virtual void postconstruct() {} +}; } // namespace boost #endif // #ifndef BOOST_ENABLE_SHARED_FROM_THIS_HPP_INCLUDED