Design Issue: is `unique_resource` worth it?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp
- Domain
- developer-experience
Research direction
Start by reading this issue and its references to gsl_lite, the C++ Core Guidelines, and P1132 out_ptr. The payload does not identify files, tests, an implementation entry point, or acceptance criteria; done would require an agreed rationale and scope for retaining or removing unique_resource.
Written by the indexing model from the issue text.
Description
After looking at some other libraries like gsl_lite and even the core guidelines, they don't have unique_resource. What is the value of this type of unique_ptr with a deleter? For the file handle case so commonly cited unique_ptr may be used in combination with the c++23 std::out_ptr - this repo for an example from the paper [P1132 out_ptr - a scalable output pointer abstraction] (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p1132r8.html#design-casting-similar).
So given the existence of P1132 is there any actual rational for this type?
More to discuss here....
- Dominant language
- C++
- Stars
- 12
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bemanproject/scope
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
bemanproject/scope#55 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
bemanproject/scope#50 ·
-
Remove inactive guards from the standard implementation of scope_guardMay be free again @JeffGarland claimed this 416 days ago, and no pull request is open. Open
bemanproject/scope#45 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
bemanproject/scope#37 ·
-
Build errors on OSXMay be free again @ClausKlein claimed this 222 days ago, and no pull request is open. Open
bemanproject/scope#36 · 4 comments · 1 assignee ·
All issues in bemanproject/scope
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
hipRTC lit tests compile against /opt/rocm's LLVM instead of the ROCm under test (ci/ hardcodes LLVM_PATH)Possibly taken @bernardogv claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
brndnmtthws/conky#2486 ·
Maintainers usually reply within 1 day
-
請增加教學:數字後的句號Open
Difficulty 1/5 Under an hour Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100