You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, it's not possible to have a local_weak_ptr. A local_shared_ptr may share ownership with a normal shared_ptr, or with another local_shared_ptr in a different thread. To properly keep track of ownership, the weak pointer has to be atomic.
I see. Maybe there is need in non-convertible version of local_shared_ptr? Plus, I suppose non-convertible version would be more efficient... Something like unsync_shared_ptr / unsync_weak_ptr ?
I do understand that
local_shared_ptr
<=>shared_ptr
. And thatlocal_shared_ptr
is basically wrapshared_ptr
.But which "weak counter" use
weak_ptr
? Here:local or atomic? From interface described in documentation - I suppose atomic. Because it's impossible to get
local_shared_ptr
directly fromweak_ptr
.So... Is it possible to have
local_weak_ptr
?The text was updated successfully, but these errors were encountered: