id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2398,Supply type info to debug hooks,Jim Barry ,Peter Dimov,"I have found it very useful to have access to the type names of shared objects for debugging purposes. May I suggest adding a type_info parameter to the hook functions: {{{ void sp_scalar_constructor_hook( void * px, std::size_t size, std::type_info const & ti, void * pn ); void sp_scalar_destructor_hook( void * px, std::size_t size, std::type_info const & ti, void * pn ); }}} Then sp_counted_impl_p can call them like this: {{{ explicit sp_counted_impl_p( X * px ): px_( px ) { #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) boost::sp_scalar_constructor_hook( px, sizeof(X), typeid(X), this ); #endif } virtual void dispose() // nothrow { #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) boost::sp_scalar_destructor_hook( px_, sizeof(X), typeid(X), this ); #endif boost::checked_delete( px_ ); } }}} Thanks!",Feature Requests,closed,To Be Determined,smart_ptr,,Not Applicable,wontfix,,