Design Issue: is `unique_resource` worth it?
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cpp
调研方向
首先阅读此 issue 及其对 gsl_lite、C++ Core Guidelines 和 P1132 out_ptr 的引用。payload 没有指出文件、测试、实现入口或验收标准;要完成这项工作,需要就保留还是移除 unique_resource 的理由和范围达成一致。
由索引模型根据 Issue 内容生成。
描述
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....
- 主要语言
- C++
- 星标
- 12
- 派生
- 11
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bemanproject/scope 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 48/100
bemanproject/scope#55 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 32/100
bemanproject/scope#50 ·
-
Remove inactive guards from the standard implementation of scope_guard可能重新可做 @JeffGarland 于 417 天前认领,目前没有进行中的 PR。 未关闭
bemanproject/scope#45 · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 35/100
bemanproject/scope#37 ·
-
Build errors on OSX可能重新可做 @ClausKlein 于 222 天前认领,目前没有进行中的 PR。 未关闭
bemanproject/scope#36 · 4 条评论 · 已指派 1 人 ·
查看 bemanproject/scope 的全部 Issue
相似的 Issue
-
agent:Windows bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
? - Needs Triage bot_watch bug
难度 2/5 1-3 小时 新手友好度 68/100
NVIDIA/cudf-spark-jni#5267 · 1 条评论 ·
维护者通常 1 天内回复
-
area/docdb kind/bug priority/medium status/awaiting-triage
难度 2/5 1-3 小时 新手友好度 82/100
yugabyte/yugabyte-db#34873 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复