I'm resurrecting this topic:

https://groups.google.com/forum/#!searchin/boost-list/shared_ptr$20void*/boost-list/QE_VCTen1YQ/styxqKB2wbQJ

because there is an unaddressed issue in it that I'm about to run into:

"... beware the pointee may be deleted if the last copy of the shared pointer
goes out of scope, as the raw pointer won't have incremented the reference count."

I cannot be the first person to run into this--a common issue when crossing an API boundary.  Has anyone come up with a good, safe solution wherein the reference count gets properly incremented?

--
Chris Cleeland