When the macro BOOST_ENABLE_SP_DEBUG_HOOKS is defined, the Boost smart pointers will call the following debug hook routines:
namespace boost { void sp_scalar_constructor_hook(void * p); void sp_array_constructor_hook(void * p); void sp_scalar_destructor_hook(void * p); void sp_array_destructor_hook(void * p); } immediately before claiming/releasing ownership of a pointer. A sample implementation of these debug hooks is available in libs\smart_ptr\sp_debug_hooks.cpp. Just #define the macro and link with sp_debug_hooks.cpp. -- Peter Dimov http://www.pdimov.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost