
15 Nov
2006
15 Nov
'06
7:10 p.m.
bringiton bringiton wrote:
Can anyone offer advice on detecting circular references with shared_ptrs.
There is an example in libs/smart_ptr/test/collector_test.cpp that shows how to use libs/smart_ptr/src/sp_collector.cpp to detect (and optionally reclaim) shared_ptr cycles. You have to #define BOOST_SP_ENABLE_DEBUG_HOOKS for your project and add sp_collector.cpp to it.