boostorg / boostorg/smart_ptr

local_weak_ptr ?

Open
#58 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
111
Forks
116
PR merge metrics
No merged PRs in 30d

Description

I do understand that `local_shared_ptr` <=> `shared_ptr` . And that `local_shared_ptr` is basically wrap `shared_ptr`.

But which "weak counter" use `weak_ptr`? Here:
```
local_shared_ptr px(new X());
weak_ptr wp(px);
```

local or atomic? From interface described in documentation - I suppose atomic. Because it's impossible to get `local_shared_ptr` directly from `weak_ptr`.

So... Is it possible to have `local_weak_ptr`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.