
AMDG On 03/18/2011 12:33 PM, Ted Byers wrote:
OK. Good. But how? I am not one to settle for 'it just works'. Rather, I like to dig into code to see precisely how it works. Though, when dealing with business admin types, whose eyes glaze over in incomprehension the moment the discussion begins to get technical, I too use the sentence "Trust me, it just works." ;-)
I actually had the code for boost:shared_ptr open, as a result of Frank Hess' message, looking for where and how this capability was implemented.
I don't suppose you can speed my examinatin of this code by giving me some line numbers ... ?
The code for managing destruction is in boost/smart_ptr/detail/sp_counted_base.hpp and boost/smart_ptr/detail/sp_counted_impl.hpp In Christ, Steven Watanabe