Date: Sun, 16 Feb 2025 16:11:02 +0000
< 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.
< 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.
Received on 2025-02-16 16:11:09