--- /usr/include/boost/shared_ptr.hpp 2004-08-24 12:27:31.000000000 -0400 +++ ./shared_ptr.hpp 2007-02-06 14:57:51.000000000 -0500 @@ -82,9 +82,13 @@ // enable_shared_from_this support -template void sp_enable_shared_from_this( shared_count const & pn, boost::enable_shared_from_this const * pe, Y const * px ) +template void sp_enable_shared_from_this( shared_count const & pn, boost::enable_shared_from_this * pe, Y const * px ) { - if(pe != 0) pe->_internal_weak_this._internal_assign(const_cast(px), pn); + if(pe != 0) + { + pe->_internal_weak_this._internal_assign(const_cast(px), pn); + pe->postconstruct(); + } } inline void sp_enable_shared_from_this( shared_count const & /*pn*/, ... )