< Sebastian Wittmeier wrote:
< how about using a pointer to pointer instead?
Hi Sebastian,
a pointer to a pointer or a reference to the unique_ptr will be good for calling into a function that may zero the owner but not if the owner falls out of scope. It would be left dangling. That is why there is a need for an independently allocated reference
counted control block.