Riffing on Raymond – incrementing the reference count on a smart pointer

Last Friday, Raymond Chen blogged about how to use a function that released one of its inputs with various smart pointer classes. He made two suggestions, and I offered a third: (Raymond) tell the smart pointer class to release ownership to the function (Raymond) use a different function that doesn’t release the input (Me) take…

4