On Tue, Jan 22, 2013 at 3:46 AM, John M. Dlugosz <mpbecey7gu@snkmail.com> wrote:
 
I really miss having a "lost and found" feature, which (in the late 90's) I wrote about as being one of the six essential features of my smart pointer design.

Yes, I was wondering if the magic call inside of smart_ptr's constructor, that handles the enabled_shared_from_this, wouldn't be better as a free function, like smart_pointer_being_created(), which gives you an extension point to go look up whether the object already had a smart pointer.  It could default back to the enabled_shared_from_this trick if you don't override it for your types, etc.

Qt's smart pointer has extra tracking like this - typically only turned on in debugging.
 
Tony