19 #ifndef INCLUDE_RCF_UTIL_SPCOLLECTOR_HPP
20 #define INCLUDE_RCF_UTIL_SPCOLLECTOR_HPP
22 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) && !defined(__MINGW32__)
28 std::size_t find_unreachable_objects(
bool report);
29 void free_unreachable_objects();
33 std::cout <<
"Checking for shared_ptr cycles..." << std::endl;
34 std::size_t count = find_unreachable_objects(
true);
37 std::cout <<
"Detected shared_ptr cycles! Unreachable objects: " << count << std::endl;
42 std::cout <<
"No shared_ptr cycles detected." << std::endl;
50 std::cout <<
"shared_ptr cycle detection not enabled." << std::endl;
55 #endif // ! INCLUDE_RCF_UTIL_SPCOLLECTOR_HPP